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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...