Splunk Search

Only return results with field appearing in a lookup

pjb2160
Path Finder

Hello,

I'm looking to only return results for "ad_x" log entries which have an "event_code" listed in the "ad_event_codes.csv" lookup:

sourcetype="ad_x" event_code=[inputlookup ad_event_codes.csv | fields event_code]

I feel I'm close but can't quite get it to work. Any pointers?

Cheers.

Tags (1)
0 Karma
1 Solution

kml_uvce
Builder

use this...

sourcetype="ad_x" [|inputlookup ad_event_codes.csv | fields event_code]

View solution in original post

pjb2160
Path Finder

Many thanks!

0 Karma

kml_uvce
Builder

use this...

sourcetype="ad_x" [|inputlookup ad_event_codes.csv | fields event_code]

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