Splunk Search

How to search iterate through lookup file

chrisfilor
Engager

I have an input lookup table with a list of user accounts we are trying to search through.

Instead of doing index=wineventlog EventCode=4624 user=user1 OR user=user2 OR user=user3.....etc

How can I use the lookup table to search on the user field?

As of now, I have this but it is returning no results:

index=wineventlog_ad EventCode=4624 [inputlookup user_list_lookup.csv]
0 Karma
1 Solution

starcher
SplunkTrust
SplunkTrust

Use lookups as lookups. and make sure the column name is the same as the user field in the data or use user AS userName or whatever the field is.

index=wineventlog_ad EventCode=4624 | lookup user_list_lookup user OUTPUT user as isFound | where isnotnull(isFound)

View solution in original post

starcher
SplunkTrust
SplunkTrust

Use lookups as lookups. and make sure the column name is the same as the user field in the data or use user AS userName or whatever the field is.

index=wineventlog_ad EventCode=4624 | lookup user_list_lookup user OUTPUT user as isFound | where isnotnull(isFound)

Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...