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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...