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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

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

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...