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!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...