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!

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 ...