Alerting

How to schedule search on 2nd Saturday of every month?

110325P
New Member

How to I schedule the search on 2nd Saturday of every month?
My cron search now is
0 23 * * 6
But this is every Saturday right?

Tags (1)
0 Karma
1 Solution

MuS
Legend

Hi 110325P,

I did not test it, but something like this should do the job:

00 23 8,9,10,11,12,13,14 * 6 

Takes advantage of the fact that the second Saturday can only possibly fall in the range of dates 8th to the 14th of the month (and no other Saturday can fall on those days!).
Or you create a search which checks the day and either continues or stops and run this on every Saturday like you did in your cron.

hope this helps ...

cheers, MuS

View solution in original post

MuS
Legend

Hi 110325P,

I did not test it, but something like this should do the job:

00 23 8,9,10,11,12,13,14 * 6 

Takes advantage of the fact that the second Saturday can only possibly fall in the range of dates 8th to the 14th of the month (and no other Saturday can fall on those days!).
Or you create a search which checks the day and either continues or stops and run this on every Saturday like you did in your cron.

hope this helps ...

cheers, MuS

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