Alerting

How to create an alert where the saved search runs every 15 mins in a day, but should not run between 18:30 and 20:30?

sheshabhargava
New Member

Hi All,

I want to create an alert where the saved search has to run every 15 mins in a day, but should not run between 18.30 to 20.30. Can anyone help me with the cron schedule for this? Thank You for your help!

0 Karma

woodcock
Esteemed Legend

Just schedule it to run every 15 minutes but make sure that it returns 0 results for the forbidden time period like this (you may need to add some equal-signs to the "<" and ">"):

... | where (date_hour<18 AND date_hour>20) OR (date_hour=18 AND date_minute<30) OR (date_hour=20 AND date_minute>30)
0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...