All Apps and Add-ons

Cron Scheduling

Devi13
Path Finder

Hello Team,

I would like to schedule a report which needs to be running on the first business day of the month.

Could you please let me know if this is possible.

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

This is not possible as a specific cron schedule - you would have to schedule for say the first 5 days of the month and have the report check if it is running in the first business day of the month.

View solution in original post

Devi13
Path Finder

Thank you so much @ITWhisperer and @venkatasri for your inputs, let me try on these.

0 Karma

venkatasri
SplunkTrust
SplunkTrust

Hi @Devi13 perhaps you could try with trigger condition inside a search as a workaround? As @ITWhisperer  said, cron is not a possible and you have to schedule it for first 5 business days.

Inside search you could put couple of conditions to check the week of the day is either Saturday/Sunday (Depends on in your Locale) and another check is if the day in holiday list using this add-on (specific to your country, location ) - https://splunkbase.splunk.com/app/4853.

Final Trigger condition:   if it is not a weekend and not a holiday then let the report run and do the necessary action. Having said that though cron is scheduled to run every day in first 5 days of month the trigger condition check will only let report fire the action on business day.

Hope this helps!

----------------------------

Srikanth Yarlagadda.

ITWhisperer
SplunkTrust
SplunkTrust

This is not possible as a specific cron schedule - you would have to schedule for say the first 5 days of the month and have the report check if it is running in the first business day of the month.

Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...