All Apps and Add-ons

Splunk grabbing website body information?


I have a request for Splunk to read the body message of a specific web url ( and the health status shows up or down.

Without installing a forwarder on the server side or reading tomcat logs theyd like to know if it's possible for splunk to read the url body and print the status to the Indexer.

I'd imagine it maybe possible to do this with a bash/ powershell script. If anyone knows of a way please let me know.

Tags (1)
0 Karma


In python you can use the "requests" package. Basic example:

import requests

r = response.get('')

In powershell you can use Invoke-WebRequest

$r = Invoke-WebRequest
echo $r.Content
0 Karma
*NEW* Splunk Love Promo!
Snag a $25 Visa Gift Card for Giving Your Review!

It's another Splunk Love Special! For a limited time, you can review one of our select Splunk products through Gartner Peer Insights and receive a $25 Visa gift card!


Or Learn More in Our Blog >>