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!

How to Monitor Google Kubernetes Engine (GKE)

We’ve looked at how to integrate Kubernetes environments with Splunk Observability Cloud, but what about ...

Index This | How can you make 45 using only 4?

October 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

Splunk Education Goes to Washington | Splunk GovSummit 2024

If you’re in the Washington, D.C. area, this is your opportunity to take your career and Splunk skills to the ...