Splunk Search

How to match search with KV lookup files?

kiranpatil1985
New Member

Hello,
I have a KV file that is auto generated with username using a script running every hour. I want to match the username in the KV file with a different index search. I have written the following query but it is always stuck on "Parsing Job". The index contains a user column. The output should be the username that is common in both user table.

index=abc
| search [| inputlookup Leaver_Lookup.kv | fields "User ID" | rename "User ID" as user | dedup user | table user ]
0 Karma

HiroshiSatoh
Champion

Is LOOKUP defined?

| inputlookup <lookup-name> where <eval-expression> | ...

Is this search working?

| inputlookup Leaver_Lookup.kv | fields "User ID" | rename "User ID" as user | dedup user | table user 
0 Karma

kiranpatil1985
New Member

Yes that search works.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...