Alerting

How to write Cron Expression for a scheduled alert?

gpunjabi
New Member

I want help writing a Cron Expression for a scheduled alert to start my search query at 2:45 AM for every 10 mins till 5:55 AM.

My Cron would run like first at 2:45,2:55,3:05,3:15.....5:55.

Can anyone please help me?

0 Karma
1 Solution

harsmarvania57
Ultra Champion

Hi,

As far as I know you can't achieve this with single cron but you can schedule same search twice with 2 different cron.

First cron 45-59/10 2 * * *, this cron executes at 02:45 and 02:55

Second cron 5-59/10 3-5 * * * , this cron executes from 03:05, 03:15 to 05:55

View solution in original post

harsmarvania57
Ultra Champion

Hi,

As far as I know you can't achieve this with single cron but you can schedule same search twice with 2 different cron.

First cron 45-59/10 2 * * *, this cron executes at 02:45 and 02:55

Second cron 5-59/10 3-5 * * * , this cron executes from 03:05, 03:15 to 05:55

gpunjabi
New Member

Thanks Harshmarvania 🙂

0 Karma

nainanayana
New Member

i want give schedule alert for last day of ever month, can we please help me how to write cron expression for this or else any other way to do

0 Karma

harsmarvania57
Ultra Champion

Welcome @gpunjabi

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...