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!

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 ...