Alerting

CRON expression

C14795A
Engager

How would I configure a CRON expression such that an alert was sent 50 minutes past every hour, but only between 7:50am (0750) to 4:50pm (1650) Monday to Friday? And if possible, excluding bank holidays. Thanks.

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
50 7-16 * * 1-5

cron doesn't know about public holidays

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
50 7-16 * * 1-5

cron doesn't know about public holidays

0 Karma

C14795A
Engager

Many thanks for the quick response - much appreciated

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You could try the holidays app from splunkbase to test if the day is a holiday in your alert search

0 Karma

C14795A
Engager

Will try that - thanks again.

0 Karma

isoutamo
SplunkTrust
SplunkTrust
Another option is create lookup file where you add those days which you want to exclude and add check from it to your query. If days match you can add something to your SPL to prevent it to give any results.
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...