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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...