Alerting

Is there a way to trigger a email/alert for when a cron expression time frame has ended and no alerts triggered?

dcephas
Engager

I currently have a search that takes two time/date intervals from the same event and subtracts them to get a value. If that value is longer than one hour an alert will be triggered. In the cron expression I have set the time to run for every day 4am to 12 pm.

What I want to know is if there is a way to also trigger an alert / email if after the alert time frame has past and no alerts were triggered.

The purpose is just to allow me to know there was no issue within that time frame of 4am to 12pm.

Obviously not getting an alert or email should suffice but less technical users would benefit from a confirmation email.

0 Karma

aberkow
Builder

Based on @adonio's idea:

index=_internal savedsearch_id="{savedSearchName}" earliest=-8h result_count>0
| stats count

And alert when the count is 0, running at 12 PM (or whatever time frame you want). Do a fuzzy search for the savedSearchName if you haven't worked with the _internal index before, ours followed something like user;app;name as the format.

Hope this helps!

0 Karma

adonio
Ultra Champion

you can search for the triggered alert for that time frame, do | stats count if count is 0, then no alerts occurred

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...