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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...