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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...