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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...