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
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...