Alerting

Alert when Avg duration greater than threshold

sivaranjani
Explorer

I have a query that displays avg duration. How to i modify query to alert if avg ( duration) is greater than 1000 last 15 mins. 

index=tra cf_space_name="pr" "cf_app_name":"Sch" "msg"."Logging Duration" AND NOT "DistributedLockProcessor" |rename msg.DurationMs as TimeT |table _time TimeT msg.Service
| bucket _time span=1m
| stats
avg(TimeT) as "Avg"
by msg.Service

11.JPG

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Use your search in an alert and add the following

| where Avg > 1000

Then set the timeframe for the search to be last 15 minutes and the alert trigger to be when there are greater than zero results

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...