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!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...