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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...