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!

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...

Cloud Platform & Enterprise: Classic Dashboard Export Feature Deprecation

As of Splunk Cloud Platform 9.3.2408 and Splunk Enterprise 9.4, classic dashboard export features are now ...

Explore the Latest Educational Offerings from Splunk (November Releases)

At Splunk Education, we are committed to providing a robust learning experience for all users, regardless of ...