Getting Data In

HTTP GET from Website

chriskoh83
New Member

I have a IoT Device That has an Webserver Running.

then I open the webpage http://iot-device.local/data
I get an json response.

How do I get this response into Splunk?

I tried to setup HTTP Event collections but I think this is the opposite way...

0 Karma

fsudmann
Explorer

I have done this quite a lot lately. 

Either use a REST API addon, like https://splunkbase.splunk.com/app/1546/

or, like me, set up a logic app in Azure to handle it for you. It costs next to nothing. 

https://docs.microsoft.com/en-us/azure/logic-apps/

I set it up to run an HTTP GET to the service, then an HTTP POST to Splunk with the results.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

You are correct. HTTP Event Collector passively receives input from other sources. It doesn't reach out to fetch data.
Check for splunkbase for an app they may do what you seek. If you don't find one, it should be simple enough to write a scripted input that fetches the page at intervals.

---
If this reply helps you, Karma would be appreciated.
0 Karma
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 ...

New This Month - Observability Updates Give Extended Visibility and Improve User ...

This month is a collection of special news! From Magic Quadrant updates to AppDynamics integrations to ...

Intro to Splunk Synthetic Monitoring

In our last post, we mentioned that the 3 key pieces of observability – metrics, logs, and traces – provide ...