Splunk Search

Splunk Alert set up based on first occurrence of error

Dharani
Path Finder

Hi, 

I want to schedule one splunk alert , please let me know if below option is possible:

  1. When the first alert received for xxx error  then query should check if this is the first occurance of an error in last 24 hours  if yes then Alert email can be triggered
  2.  If the error is not first occurance then may be based on threshold we should only send one email for more than 15 failures in an  hour or so.

2nd point is basically set up splunk alert for xxx error , threshold: trigger when count>15 in last 1 hour.

1st point is for , when 1st occurrence of error came , it will not wait for count>15 and 1 hr , it will immediately trigger an email.

 

Please help on this.

Labels (3)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Dharani ,

yes it's possible, you should:

  • setup an action that when the first alert is triggered, it writes an event in a summary index (better) or in a lookup;
  • add to you alert the condition that the alert wasn't already triggered reading from the summary index.

If you have Enterprise Security, you don't need the summary index and you can use the Notable index.

Ciao.

Giuseppe

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

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

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...