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.

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...