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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...