All Apps and Add-ons

Splunk Curl for website monitoring or synthetic transaction

puneetkharband1
Path Finder

Is there a way i can test a webpage and validate a text from the response using splunk ? I am using website monitoring app which tells me the web page response based on the status code but that is not conclusive enough to prove the website is up and running so I need to validate a text check on the page ?

0 Karma

LukeMurphey
Champion

You could do this now using the Website Input app. That app is intended to extract data from websites but you could use it to extract some text and then have a search ensure that the data is what is expected. All you would have to do is:

  1. Make an input to extract some data (whatever data you want to verify)
  2. Write a search that examines the output and triggers an alert if the result is not what you expect or if the selector matches nothing

Furthermore, I am considering adding a capability to do what you are asking in the Website Monitoring app. I opened a ticket to consider it in the future (https://lukemurphey.net/issues/1773).

Update:
This feature was implemented in version 2.5 of the Website Monitoring app.

lguinn2
Legend

You could create a scripted input in Splunk. Write a script (it could use curl) that posts to the web page and collects/analyzes the response. The script should write out its results; I would include a timestamp, the server being tested, the test string and result, for example. Then you could write a scheduled alert in Splunk that runs periodically and examines the test results.

0 Karma

puneetkharband1
Path Finder

Thanks Iguinn for replying ...i was wondering if someone is already doing that stuff or someone can share a sample script if possible ...I just want to put a text check to a webpage that we ping to or curl to.

0 Karma
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...