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!

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 ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...