How do I schedule a search to run every Friday morning at 11 am until Sunday morning at 9 am using a cron job?
The third position is day of the week, with 0 = Sunday.
So if you want to run something every Friday it would be 5.
The second position is hour.
* 11 5 * *
Will run every Friday at 11.
Schedule the search time frame to look back to Sunday at 9, eariest=-122h@m latest=now.
if it is this: minute | hour | Day of month | Month| Day of week
then it should be
full hour | 11 hours | any day of the month | any month | 5 day of the week (0=Sunday)
so, this post is swallowing some characters when being published, as it actually had 5 positions in the cron .
Let's try again (this time correct):
Zero eleven asterix asterix five
0
11
*
*
5
minute | hour | Day of month | Month| Day of week
then it should be * 11 * * 5 for Every Friday at 11
Yes, starting from Friday 11am till Sunday 9am every 5 mins.
actually splunk alert schdule
Question is how often you want this search to be run in your timerange (Friday 11am --> Sunday 9am)
The third position is day of the week, with 0 = Sunday.
So if you want to run something every Friday it would be 5.
The second position is hour.
* 11 5 * *
Will run every Friday at 11.
Schedule the search time frame to look back to Sunday at 9, eariest=-122h@m latest=now.
every week
how often ?