Alerting

Help needed regarding cron expression

prateeksawhney
Explorer

Hi All,

I need your help in creating cron expression for alert schedule. I need to schedule a alert from Monday 02:00 - Saturday 00:30.

If any other information is required please let me know.

Any help will be highly appreciated. 

 

Thanks in advance.

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

How often during those times? Or only at those times?

This is not possible in a single cron expression; depending on the actual times you want to trigger the search, you may need to have up to 3 expressions e.g. to cover from Monday 02:00 to midnight; all day Tuesday through Friday; and, up to 00:30 on Saturday.

Alternatively, you can exclude those times in your search i.e. return zero results outside the desired timeframe.

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...