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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...