Developing for Splunk Enterprise

Submitting events to an index: even when no errors are returned, not all events are found on Splunk.


Hello, guys!

Well, I'm trying to send data to a Splunk index via Splunk SDK for NodeJS.

The thing is: randomly, I was receiving this error for some events:
Error: connect ECONNRESET at TCPConnectWrap.afterConnect [as oncomplete]

Ok, then I implemented a retrial mechanism for that error. It seemed to work, since I could send much more data to Splunk than ever. But, still, not all data are sent. And worst, no error is returned on callback.
I thought it could be concurrency, then I created a submission pool which only submits 500 events max (I even tried with 10 lol) concurrently. Nothing changed.

Out of 32k records, only between 25k and 28k are properly sent to Splunk.

Have you guys ever been through this situation?
Thanks in advance.

0 Karma



"ECONNRESET" points out, that the receiving side rudely closed its end of the TCP connection.

Could the index be overloaded and simply kills the connection as a result? Are there any hints in your splunkd.log?



Hey, Bjorn!
Well, nothing is logged on splunkd.log when the error is raised.

Could this error happen due to too many data being sent to the index in a short period of time? I'll try to give some time to the index to breathe between batches' execution.


0 Karma
.conf21 Now Fully Virtual!
Register for FREE Today!

We've made .conf21 totally virtual and totally FREE! Our completely online experience will run from 10/19 through 10/20 with some additional events, too!