Getting Data In

Using a csv lookup to exclude results from a query, but not working if more than one column of fields

sknot1454
Explorer

I have a lookup table that I want to use to exclude results from a search. I want to exclude results if something in Field A matches OR something matches in Field B.

Field A|Field B
Data|Data

If I only use one column in the CSV(column with Field A) and run it with my query: "sourcetype=bla | search NOT [inputlookup blahlookup]", the data I want excluded from field A is excluded. If include both columns in my lookup, it won't exclude any results.

Is this possible or will I have to make up a separate lookup table for Field B and use an OR statement in my query?

0 Karma
1 Solution

sknot1454
Explorer

That eval definitely looks promising. Thanks!

0 Karma

sundareshr
Legend

If this works, please mark this answer as accepted to close it out.

0 Karma
Get Updates on the Splunk Community!

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...

Splunk AppDynamics Agents Webinar Series

Mark your calendars! On June 24th at 12PM PST, we’re going live with the second session of our Splunk ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2025 SplunkTrust is officially open! If you ...