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!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...