Splunk Dev

Splunk cron question

msehic
Explorer

What would be the best way to schedule Alert Cron Expression running every 5 min from Sunday 10 AM until Friday 5 PM?

Tags (1)
0 Karma

p_gurav
Champion

Try something like:

*/5 10-17 * * 0-5
0 Karma

msehic
Explorer

thank you for responding.
I think this would make sense only if you run every day from 10-17 Sun to Fri.
It would not cover for example 17:00 Mon until 10:00 Tuesday.

Only option I see is with 3 cloned alerts running separated times:

*/5 * * * 1-4 -> Monday - Thursday
*/5 0-17 * * 5 -> Friday.
and something on Sunday.

wondering if anyone came up with better idea.

0 Karma
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, ...