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

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...