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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...