Reporting

Create monthly report which excludes Saturdays and Sundays

JYTTEJ
Communicator

I need to create a monthly report, which does not select events, which happens on Saturdays and Sundays.

This report should be set up to run on a monthly basis (= select previous month) - but should exclude all Saturdays and Sundays in each month.

How do I set up a monthly report to automatically exclude Saturdays and Sundays?

Tags (1)
0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

The base search for the report could exclude Saturdays and Sundays :

index=someindex sourcetype=somesourcetype NOT (date_wday=sunday OR date_wday=saturday) | ...

And the time range in the scheduled report could specify the previous month :

start time = -1mon@mon
finish time = @mon

Then schedule your report to run on the first of each month :

cron =  0 0 1 * *

View solution in original post

0 Karma

Damien_Dallimor
Ultra Champion

The base search for the report could exclude Saturdays and Sundays :

index=someindex sourcetype=somesourcetype NOT (date_wday=sunday OR date_wday=saturday) | ...

And the time range in the scheduled report could specify the previous month :

start time = -1mon@mon
finish time = @mon

Then schedule your report to run on the first of each month :

cron =  0 0 1 * *
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...