Alerting

Need help for Cron schedule

pratap924
New Member

Can you please help me to write the Cron schedule for the below format:

Need to schedule alert for every 2 mins after 10th min (1, 12, 22, 32 ..) interval.

Thanks in advance.

Tags (1)
0 Karma
1 Solution

kristian_kolb
Ultra Champion

This would do what you (say you) like

1,12,22,32,42,52 * * * *

it can also be written

2-52/10 * * * *

But perhaps the first "1" should be a "2" to be consistent?

More info and an online calculator here:

http://www.dataphyx.com/cronsandbox/cronsandboxgui.php

/K

View solution in original post

kristian_kolb
Ultra Champion

eer, well. you're right linu1988. The text and the example don't add up.

Every 2 mins after the 10th (what the text says) is;

12-59/2 * * * *

i.e. 12, 14, 16, 18 ... 58

However, see below for the schedule according to the supplied sample intervals.

/k

0 Karma

kristian_kolb
Ultra Champion

This would do what you (say you) like

1,12,22,32,42,52 * * * *

it can also be written

2-52/10 * * * *

But perhaps the first "1" should be a "2" to be consistent?

More info and an online calculator here:

http://www.dataphyx.com/cronsandbox/cronsandboxgui.php

/K

linu1988
Champion

Yes, this should be done not 1 then 12. This is the best answer for your question.

0 Karma

pratap924
New Member

Thank you so much for the quick turn around on this request. Really Appreciate.
This cron expression is working 🙂

0 Karma

linu1988
Champion

not possible , you don't have a series proper sequence

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...