Splunk Search

Trigger alert after checking results for 3 minutes?

sarit_s
Communicator

Hello

How can I trigger an alert after checking the results for 3 minuets 
So for example, if I want that the alert will trigger if count>1 , I would like to check for 3 minutes if count>1 and only then raise the alert

How can i do it ?

Tags (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @sarit_s ,

you have to schedule your alert every three minutes and insert a stats count and a threshold, so if you want to count the events where there's an error, you could schedule every three minutes an alert like this:

index=your_index error="your_error"
| stats count
| where count>1

then you have to configure your alert to trigger if results are greater than zero.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...