Alerting

Splunk Alert Setup

csridhar
New Member

Hello Everyone,

I need a help in setting up Splunk Alert to generate an alert if we get 60 errors per minute over a 5 minute period

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Perhaps this will get you started.

index=foo earliest=-5m ERROR
```Group events by the minute```
| bin span=1m _time
```Count how many occurred each minute```
| stats count by _time
```Keep only the minutes where the count was 60
| where count=60
```Count how many minutes are represented```
| stats count
```Return results if all 5 minutes have 60 errors```
| where count=5
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...

New Year. New Skills. New Course Releases from Splunk Education

A new year often inspires reflection—and reinvention. Whether your goals include strengthening your security ...