Getting Data In

Inputlookup and Index rename returning null results

willadams
Contributor

I have an index called "adusers". This index pulls in all information about enabled user accounts. For the purposes of this post the values I am interested in is the "SamAccountName" so that I am able to then table information about "Surname, GivenName". So when I see my index I can see

SamAccountName = USER123
Surname = Bloggs
GivenName = Joe

If I do a search on my index I get the data

index=adusers name=user123 | table name, Surname, GivenName

I also have a inputlookup file that I would like to reference. The inputlookup file is a csv (lookup is called vip) that looks as follows:

username

user123
user456
userabc
user987

If I do the following search I get data

|inputlookup vip

What I am trying to do is to search on my index using the inputlookup but I am not getting any results (time is set to "All time"). So if I do the following search

index=adusers [|inputlookup vip] ==> no results
index=adusers [|inputlookup vip | rename SamAccountName as username] ==> no results
index=adusers [|inputlookup vip | rename username as SameAccountName] ==> no results
index=adusers [|inputlookup vip | rename SamAccountName as username | fields username] ==> no results
index=adusers [|inputlookup vip | rename username as SamAccountName | fields SamAccountName] ==> no results

I have this query working on a different dashboard but as the fields are the same in both the index and lookup I don't have this problem. I am trying to rename a field (either on the index or the lookup) so that I am able to search the information. What I am trying to generate is:

If a user exists in the inputlookup file (vip), look in the index (adusers) for that user and then from that index(adusers) get data (whatever) to generate a dashboard from it.

Where am I going wrong?

Tags (1)
0 Karma

mayurr98
Super Champion

hey below query should work.

index=adusers [|inputlookup vip | rename username as SamAccountName | fields SamAccountName] 

If it is not then follow the below checklist:

1) SamAccountName field exists in index=adusers?
2) username field values match the values(case insensitive) in the SamAccountName?

let me know if this helps!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Data Management Digest – September 2026

    Welcome to the September 2026 edition of Data Management Digest! September brought a fresh wave of ...

Federated Search for CloudWatch Unified Data Store Is Generally Available

As organizations modernize their cloud environments, AWS workloads generate more security, operational, and ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...