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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...