Splunk Search

Age of a ticket in Business Days, excluding Weekends and Public Hoildays

SwatiApte
Path Finder

We have a ticket management application, which requires us to calculate the Gross Age of a ticket, in number of Business Days. We can use (Current Time Stamp - Creation Time Stamp) to calculate the duration(in days) for which a ticket has been open, but the requirement is to exclude Weekends as well as Public Hoildays from this duration calculation.

Could you please advise on how it could be done?

Tags (2)

BenTan
Path Finder

sundareshr
Legend

For Public Holidays, you will need to maintain a lookup table of all recognized holidays and use that to exclude from your dates.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...