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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...