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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...