All Apps and Add-ons

How to replace the response code value in a dashboard panel

vinaykata
Path Finder

Hi,
I wanted to replace the response code (401) with 200 for a specific url in the website monitoring app. please see the attached screenshot for the reference. The colored fields has IIS service name and url. Lets say If I have a 100 URL inputs in the website monitoring app, I wanted to replace the 401 value only for specific single URL but not for all of the 100 URL's.alt text

1 Solution

adonio
Ultra Champion

not sure what are the fields but you can probably add some eval there
if the field for url is "url", the field for status is: "status" and your special url is: "unique_website", try something along those lines,
... | eval status = if(url=="unique_website" AND status=="401","200",status)

hope it helps

View solution in original post

adonio
Ultra Champion

not sure what are the fields but you can probably add some eval there
if the field for url is "url", the field for status is: "status" and your special url is: "unique_website", try something along those lines,
... | eval status = if(url=="unique_website" AND status=="401","200",status)

hope it helps

vinaykata
Path Finder

Wonderful!!! That was a perfect call!! Thank you sir

0 Karma

vinaykata
Path Finder

How do I accept this answer, I am not seeing any options below to accept this answer

0 Karma

adonio
Ultra Champion

happy it helped, converted to an answer, you can kindly accept, up-vote or both

0 Karma
Get Updates on the Splunk Community!

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

🍂 Fall into November with a fresh lineup of Community Office Hours, Tech Talks, and Webinars we’ve ...

Transform your security operations with Splunk Enterprise Security

Hi Splunk Community, Splunk Platform has set a great foundation for your security operations. With the ...

Splunk Admins and App Developers | Earn a $35 gift card!

Splunk, in collaboration with ESG (Enterprise Strategy Group) by TechTarget, is excited to announce a ...