Getting Data In

REST API to push data into Splunk

dhavamanis
Builder

We are trying to push the application real time data into Splunk as part of code base, Do we have any REST API to push the data into Splunk instead of pushing through forwarder.

Tags (2)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You can stream data to Splunk using the REST API endpoint /services/receivers/stream - see http://docs.splunk.com/Documentation/Splunk/6.1.1/RESTAPI/RESTinput#receivers.2Fstream for reference.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

You can stream data to Splunk using the REST API endpoint /services/receivers/stream - see http://docs.splunk.com/Documentation/Splunk/6.1.1/RESTAPI/RESTinput#receivers.2Fstream for reference.

japala
Path Finder

Hello i tried using the same, but i don't know where i am doing the mistake, and when the client is trying to send data from their server, it says following error.

~$ curl -kv -H "Accept: application/json" "https://localhost:8089/services/receivers/simple"
* getaddrinfo(3) failed for localhost:8089
* Couldn't resolve host 'localhost'
* Closing connection #0
curl: (6) Couldn't resolve host 'localhost'

Any idea what is happening here..?

***our server changed to localhost

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...