Monitoring Splunk

Treat certain response codes as OK, in "Website Monitoring" app?

alexeig
Engager

(New to Splunk - please forgive rookie questions.)

The question is about Website Monitoring app's configuration.

It's somewhat similar to How to replace the response code value in a dashboard panel, however in my case I'd treat certain response codes (401, 503) as "OK" - not an error - for specific URLs. Possible?

Thanks!

Tags (1)
0 Karma

venky1544
Builder

quite a late response but i tried the below query which prints the response code in OK you need to edit for other response code

sourcetype="web_ping" website_monitoring_search_index| stats avg(total_time) as avg_response_time max(total_time) as max_response_time latest(response_code) as response_code latest(_time) as last_checked latest(title) as title latest(url) as url latest(total_time) as response_time range(total_time) as range min(total_time) as min by source|eval FinalStatus = if(response_code == 200, "OK", "Error")|table title FinalStatus last_checked | timesince(last_checked,last_checked)

0 Karma

sbattista09
Contributor
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...