Splunk Search

Compare a field with lookup file

praneshjan
Explorer

I was trying to compare searched result with lookup file.
Is there any to compare results with lookup file.

|mysearch
|append[|inputlookup lookupname|field Lookupfield]
|where searched=lookupfield

this was my search trying but it is not working.

0 Karma

sheamus69
Communicator

How about:

... mysearch |lookup lookupname lookupnamefield OUTPUT lookupnamefield as dummy|where isnotnull(dummy)
0 Karma

jkat54
SplunkTrust
SplunkTrust

Try this:

 ... mysearch [|inputlookup lookupname | fields lookupField|format]

Will unpack to this:

... mysearch ((lookupField=valueFromLookupRow1) OR (lookupField=valueFromLookupRow2) OR ... )
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...