Two times a day, select cron schedule in alert.
0 3,15 * * *
? - That'll run a job at 3am and 3pm. That's twice a day, with 12 hours between.
You could use 0 0/12 * * *
? which means every 12 hours.
Two times a day, select cron schedule in alert.
0 3,15 * * *
? - That'll run a job at 3am and 3pm. That's twice a day, with 12 hours between.
You could use 0 0/12 * * *
? which means every 12 hours.
The answer should be amended - 0 0 3,15 * *
is "every 3rd and 15th day of every month, do something at midnight".
The second expression is invalid because the day of month starts with 1, not 0.
Agreed, sorry for the typo
it should be -- 0 3,15 * * *
-- for 3am and 3pm everyday of every month.
-- 0 */12 * * *
-- which means every 12 hours.
i tried using your example it says invalid cron
should I leave the earliest and latest columns blank
that depends on the alert sampling, what is the time range you are doing it for. It has no relation with the cron schedule.
Please provide more information on your alert.
i want to run at 12 am and 12 pm
0 0 00/12 * * *
- Use this in the cron
I used this and it worked
0 */12 * * *
Not sure why you voted my answer down, "0 /12 " was in my initial solution.
awesome 🙂