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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...