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!

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