Splunk Search

I need to calculate the number of business days between two dates. Any help or direction on this will be very helpful.

yaminims
New Member

I need to calculate the number of business days between two dates. Any help or direction on this will be very helpful.

Tags (3)
0 Karma

jonuwz
Influencer

This :

| gentimes start=11/01/12 end=11/30/12 | search starthuman!="Sun*" starthuman!="Sat*" | stats count

This doesn't include 30th Nov, so if you want to include the end date in your calculation, add 1.

Also assumes non-business days start with 'Sat' or 'Sun'

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, ...