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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...