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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...