Splunk IT Service Intelligence

Alert based on Cron Expression: Run At every 15th minute from 1 through 59

RR5027153
New Member

Hi ,I am trying to schedule an alert to Run At every 15th minute from 1 through 59 via. below CRON expression but getting Invalid cron_schedule error .

1/15 * * * *

CronExpression looks ok to me - https://crontab.guru/#1/15_*_*_*_*

0 Karma

danielswan
Explorer

The reason this doesn't work is because the 1 before the slash is specifying the first minute of the hour only. The /15 is being prohibited by the 1.
If you can only run on the first minute, then you can't run again 15 minutes later because it's not allowed.

Do you require it to wait until a minute after the hour, or can it just run every minute?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I've had the same experience. Try one of these workarounds:

1-59/15 * * * *

1,16,31,46 * * * *
---
If this reply helps you, Karma would be appreciated.

VatsalJagani
SplunkTrust
SplunkTrust

@RR5027153 - 1/15 is wrong standard in cron, check https://crontab.guru/#1/15_*_*_*_*.
Try any solution given by @richgalloway or try */15 * * * *.

danielswan
Explorer

@VatsalJagani You should post that as an answer, so people can see it more clearly and you'll get reputation points. It is the best solution.

0 Karma
Get Updates on the Splunk Community!

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

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...