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!

Introducing the Splunk Community Dashboard Challenge!

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

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...