Alerting

Generate a alert when the status field change from 500 to 200

raghunandan
New Member

Generate a alert when the http status field change from 500 to 200. There are some responsecode 502,so success rate responsecode 200 very high .So we want the first success responsecode 200 ,after 500

Labels (2)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Start with a search to find the boundary - you may need to sort or reverse to get the events in the right order

| streamstats window=1 current=f values(responseCode) as previousResponseCode
| where responseCode=200 AND previousResponseCode!=200 AND isnotnull(previousResponseCode)
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...