Splunk Search

Is there any way to sepcify the time range "holiday"?

Takajian
Builder

Is there any way to sepcify the time range "holiday"?
I know the time modifier "w0" is Sunday. But I do not know how to search event on holiday.

Tags (1)
0 Karma

araitz
Splunk Employee
Splunk Employee

Here's an example of a search against Splunk's internal index restricted to Christmas Eve and Christmas Day:

index=_internal (date_mday=24 OR date_mday=25) date_month=12

You could create a macro to compile all the desired holidays in to one. Keep in mind that you will need to search over a long enough period of time such that the holidays are within your time range.

Ayn
Legend

How do you define holiday? I'm assuming you don't just mean a weekend?

Get Updates on the Splunk Community!

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

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...