Splunk Search

join lookup based on the field

Muthu_Vinith
Path Finder

Hi, 
I'm trying to join two lookups based on the name field. Here's what i have,

|inputlookup abc.csv
|table name published
|lookup def.csv name as name OUTPUT releaseyear



When i run this, i get a multiple values in the field. How to get rid of these multiple values and ensure only one value per field?

Thanks!

Labels (1)
0 Karma

Muthu_Vinith
Path Finder

Thanks @yuanliu @ITWhisperer . It works

0 Karma

yuanliu
SplunkTrust
SplunkTrust

Alternatively, you can do

|inputlookup abc.csv
|table name published
|lookup def.csv name as name OUTPUT releaseyear
| eval releaseyear = mvdedup(releaseyear)
Tags (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Assuming it is releaseyear that has the multiple values, you could try mvexpand

|inputlookup abc.csv
|table name published
|lookup def.csv name as name OUTPUT releaseyear
|mvexpand releaseyear
Tags (1)
0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...