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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...