Getting Data In

post data to splunk, REST API

shankarbandaru
Engager

Hi,

I am new to Splunk and just trying to add data to it. I have a Raspberry Pi connected with temperature sensors and loaded Emoncms framework (www.emoncms.org). The emoncms cloud accepts data with a REST style post request.

Just wondering how to setup Splunk to receive this data, how can tell splunk to listen for post requests?

Regards,
Shankar.

Tags (1)

Damien_Dallimor
Ultra Champion

Splunk already listens on HTTPS port 8089 by default for REST calls.

The receivers/simple and receivers/stream endpoints allow for sending data to Splunk over HTTP REST.

We have many SDK's to make it easier to use the REST API.

The Python one would be a good candidate for Rasp Pi.

Here are Python SDK examples for getting data into Splunk.

You can also create a TCP or UDP input in Splunk and send data directly without using HTTP REST ie: you might use a Splunk SDK for this also or use netcat from your Rasp Pi shell..

Check out the Splunk Forwarder for Rasp Pi also.

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 ...