Splunk Search

lookup file csv

vumanhtai
Path Finder

i have a search in splunk
search dest_ip=10.10.20.3 OR dest_ip=10.2.3.5 OR dest_ip=10.6.7.4 OR dest_ip=10.0.4.6

. I have a file csv
dest_ip
10.10.20.3
10.2.3.5
10.6.7.4
10.0.4.6

how do i change search to lookup file csv

Tags (1)
0 Karma

niketn
Legend

@vumanhtai, try the following:

<yourBaseSearch> [|inputlookup <yourLookupFile>.csv | table dest_ip]
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...