Alerting

How do search and trigger an alert for elevated values over a certain time frame?

jlim2003
New Member

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!!

0 Karma
1 Solution

Yasaswy
Contributor

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

View solution in original post

Yasaswy
Contributor

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

jlim2003
New Member

This works great. I looked up the bucket command and it suits my needs.

Thank you!

0 Karma
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

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

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...