All Apps and Add-ons

How to schedule a report to run every second business day of the month?

bennybunny09
New Member

I want to run an alert report run every second business day of the month?

0 Karma

woodcock
Esteemed Legend

Use a cron of * 10 2-7 * 1-5 but also add logic to your SPL to short-circuit your search so that on those days that aren't the 2nd business day don't run. See my unaccepted answer here:

https://answers.splunk.com/answers/172541/is-it-possible-to-purposely-cause-a-scheduled-sear.html

0 Karma

bennybunny09
New Member

I want it to run every 2nd business day of every month at 2:00 PM. It should exclude weekends, holidays..

0 Karma

woodcock
Esteemed Legend

Did you even bother to read the answer? It is a flexible answer that when tuned will do exactly what you need it to do. Ignore the OP subject and look at the answer.

0 Karma

impurush
Contributor

Hi @bennybunny09 Please use the below cron expression to schedule your alert.

* 10 2-7 * 1-5

Every 2nd business day of the month @10 AM will run the alert/report.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...