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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...