Dashboards & Visualizations

Can you help me search a current user in a lookup file?

kingwaras
Engager

Hi all,

I need your help.

I created a lookup file (hierarchy_lookup.csv) with this layout

[Name] [Level]
A 1
B 2
C 3
D 3

I would like to create a dashboard that, in the dropdow list view, the Name presents in the lookup file that has a Level lower that level of current user logged into Splunk.

Ex. My user is B
In the dropdown list will view the C & D user.

Ex. My user is A
In the dropdown list will view the B,C & D user.

I hope I have explained my problem well.

Thanks in advance.

Andrea

0 Karma
1 Solution

somesoni2
Revered Legend

Try this for your drop-down populating search:

| inputlookup hierarchy_lookup.csv 
| where 'Level'<
[| inputlookup hierarchy_lookup.csv 
           | where [| rest /services/authentication/current-context | table username | rename username as Name ] 
| table Level | rename Level as search ]

View solution in original post

0 Karma

somesoni2
Revered Legend

Try this for your drop-down populating search:

| inputlookup hierarchy_lookup.csv 
| where 'Level'<
[| inputlookup hierarchy_lookup.csv 
           | where [| rest /services/authentication/current-context | table username | rename username as Name ] 
| table Level | rename Level as search ]
0 Karma

kingwaras
Engager

Thank you so much Somesoni2! Working fine!

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...