I have a request for Splunk to read the body message of a specific web url (https://myurl.com/health) 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.
In python you can use the "requests" package. Basic example:
r = response.get('https://myurl.com/health')
In powershell you can use Invoke-WebRequest
$r = Invoke-WebRequest https://myurl.com/health