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
SplunkTrust
SplunkTrust

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
SplunkTrust
SplunkTrust

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
SplunkTrust
SplunkTrust

Welcome @gpunjabi

0 Karma
Get Updates on the Splunk Community!

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 ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...