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!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

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

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...