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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...