Alerting

Splunk Cloud - cron expresion for alert

dkgs
Communicator

Hello,

I need to schedule an alert in 2:30 AM to 4:00 AM in splunk alert. 

Please suggest the cron expression .

Thanks

Labels (4)
0 Karma

livehybrid
Builder

Hi,

You'll need two alerts for this, as both the minutes and hours are different.

You could use:

30 2 * * * for 02:30am

0 4 * * * for 04:00am

I hope this helps!

Will

0 Karma

dkgs
Communicator

hi @livehybrid 

Thank you. But I need all the alerts between 2:30 AM to 4:00 AM.  How I should be the con expression in that case

0 Karma

livehybrid
Builder

Is that on a schedule just between 2.30 and 4.00 AM?

e.g. every 5 minutes between those times?

0 Karma

dkgs
Communicator

@livehybrid  yes, every 5 minutes between 2.30 and 4.00 AM the alert needs to be triggered

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

as one alert can utilise only one cron expression you must create separate alerts (even the search is same) for those.

1) 2:30 - 2:55; 30,35,40,45,50,55 2 * * *

2) 3:00 - 3:55; */5 3 * * *

3) 4:00; 0 4 * * *

r. Ismo

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...