Splunk Search

Report only if exists in external lookup

timmy13
Communicator

I have a very basic lookup defined. Given a UserID in my indexed data, I lookup the name from an external csv file that literally has two fields, UserID and Name.

Is it possible to report on only those records where the UserID exists in the external lookup, and filter out all records where the User ID does not exist?

Tags (3)
1 Solution

ftk
Motivator

you could do something like the following:

"your search terms" | lookup useridlookup UserID OUTPUT Name | search Name=*

View solution in original post

ftk
Motivator

you could do something like the following:

"your search terms" | lookup useridlookup UserID OUTPUT Name | search Name=*

Glenn
Builder

You could do, but it's not efficient. There should be a way to use the lookup as a filter on the initial search. Here you have to search for everything and then filter later, depending on how big your total data set is compared to the set defined by your lookup, you could be doing a heck of a lot of extra disk reads.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...