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!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...