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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...