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!

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