I would like to configure alerting for elevated values over time.
For example, if avg(time_taken)>=5000 for 10 mins or more, this would trigger an alert.
This is to avoid alerts being generated for one time spikes.
What would be the best way to accomplish such a condition?
Any help is much appreciated!!
Hi.. you should be able to use the standard "Schedule and alert" options. .. run your search every min and set the condition to "if number of events -> is greater then ->0" and alert mode "once per search"
something like below should work:
... | bucket _time span=10m | stats avg(time_taken) as ttkn| where ttkn >= 5000
Hi.. you should be able to use the standard "Schedule and alert" options. .. run your search every min and set the condition to "if number of events -> is greater then ->0" and alert mode "once per search"
something like below should work:
... | bucket _time span=10m | stats avg(time_taken) as ttkn| where ttkn >= 5000
This works great. I looked up the bucket command and it suits my needs.
Thank you!