Getting Data In

No HTTP response from Splunk when sending data

bruceclarke
Contributor

All,

I'm trying to curl data to my Splunk indexer. The data is getting there, but I'm never receiving a response from Splunk that the data was received. This is causing issues, since I can't tell if the data was forwarded correctly. I receive a response from Splunk when I issue POSTs for searches, so this is NOT a connection issue.

Here is the curl command I'm issuing to a TCP enabled port. Like I say, the data is getting to Splunk, but I don't receive any response. Why might this be?

curl -k "http://MySplunkIndexer:515/services/receivers/simple" -d "Testkey=TestValue"

Thanks!

Tags (4)
0 Karma
1 Solution

acharlieh
Influencer

A TCP input, is simply that. It is a lower level than HTTP. A tool like netcat is more appropriate for testing sending data over TCP.

However it looks like you're attempting to use the Splunk REST API to send data. This goes over the Splunk management port (By default your URL should be: https://yourSplunkIndexer:8089/services/receivers/simple ) It's been a while since I've played with the REST API to send data, but you may or may not need to authenticate for this endpoint as well.

View solution in original post

acharlieh
Influencer

A TCP input, is simply that. It is a lower level than HTTP. A tool like netcat is more appropriate for testing sending data over TCP.

However it looks like you're attempting to use the Splunk REST API to send data. This goes over the Splunk management port (By default your URL should be: https://yourSplunkIndexer:8089/services/receivers/simple ) It's been a while since I've played with the REST API to send data, but you may or may not need to authenticate for this endpoint as well.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...