Alerting

Weekend Alerts not working

vishalduttauk
Path Finder

Hi there,

I used to have a couple of alerts which worked using a crons expression from Monday to Saturday (*/15 7-19 * * 1-) and another for Sunday (*/15 10-15 * * 0).

The requirements changed so I needed the Saturday and Sunday alert timings to be the same. I used (*/15 10-15 * * 6-7) but that didn't that didn't trigger an alert. I tried */15 10-15 * * SAT-SUN but it doesn't accept that format.

 

Can you help me with a crons expression for Saturday and Sunday?

Labels (2)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @vishalduttauk,

did you tried this:

for Saturday and Sunday:

*/15 10-15 * * 0,6 

for the other days:

*/15 7-19 * * 1,2,3,4,5

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @vishalduttauk,

did you tried this:

for Saturday and Sunday:

*/15 10-15 * * 0,6 

for the other days:

*/15 7-19 * * 1,2,3,4,5

Ciao.

Giuseppe

vishalduttauk
Path Finder

Hi @gcusello 

The week day alerts were working fine but I've applied 0, 6 to the weekend alerts so that should work now.

 

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