Getting Data In

Splunk forwarder not receiving events immediately

formanojr
New Member

Hi,
We are using a Splunk forwarder to forward events to Splunk indexer/Server. This is what we are doing:
1. Create a socket connection to Splunk forwarder. Connect to the socket. Write to the socket through a stream and close the socket. Next time create a new socket to connect to the forwarder.
2. The above way pushes the events and shows up immediately on the Splunk side.

Since creating and destroying is not useful, we tried implementing a socket pool to maintain the connection in the pool and reuse it.

What we observed with this is that the events written to the socket from the pool (to the forwarder) doesn't show up in the Splunk server immediately. We are not even sure if would show up eventually.
* Is there some buffering configuration on the forwarder side ?
* Also is there a standard SDK/api types (TCPInput seems like for indexers on the server side) that could used to push events to the forwarder ?

Thanks!

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Concerning your last bit, you're probably looking for this: http://docs.splunk.com/Documentation/Splunk/6.1.1/RESTAPI/RESTinput#receivers.2Fstream

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...