Alerting

Cron schedule in Splunk Cloud to run every second Tuesday of the month

nabeel652
Builder

Hello Splunkers

I have a requirement to run an alert on second Tuesday of each month at 5:30am. I came up with 

 

30 05 8-14 * 2

 



However, Splunk tends to run it every Tuesday regardless of the date being between 8th to 14th. 

Is this a shortcoming in Splunk or I'm doing something wrong?

Labels (3)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @nabeel652 ,

if the alert must run only one the second Tuesday of the month, you could use your cron and add a condition in the alert, that the day of mont must be between 8 and 15:

<your_search> (date_mday>7 date_mday<16)
| ...

Ciao.

Giuseppe

0 Karma

nabeel652
Builder

Thanks for the reply. Sorry that's not what I want to achieve. My search spans over last 30 days - This will only make it look for the timespan > 7 and < 14 days. 

I want Splunk to run this search on the given Cron schedule not to change the search time span. 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @nabeel652 ,

for my knowledge, you can schedule a search using cron on Tuesday, but not on the second Tuesday.

To do this, the only way is adding a contrain to the search.

Ciao.

Giuseppe

nabeel652
Builder

Thank you. That's what I thought too. However, 

30 05 8-14 * 2


is a valid cron and Splunk should consider fixing this 

0 Karma
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco &#43; Splunk! We’ve ...