Splunk Search

how to exclude a holiday from search splunk using lookup csv

ruben993
New Member

Hi everyone ,
I would like to exclude a holiday list from my search using a lookup.csv .

how to do ? thanks all of you

| eval holiday =mvrange(strptime(insrt_date,"%Y-%m-%d"),strptime(updt_date,"%Y-%m-%d"),86400) | convert ctime(date) as dates timeformat="%A" | eval dates=mvfilter(NOT match(dates,"(Saturday|Sunday)")) | mvexpand date | search NOT [| inputlookup holiday.csv | eval datefield=strptime(datefield, "%Y-%m-%d") ]

0 Karma
1 Solution

vnravikumar
Champion
0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...