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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...