Splunk Search

Join with different field names

jenkinsta
Path Finder

I have an inputlookup called adexport.csv thats big...

trying to join and match two fields in the lookup UserName and with the splunk field UserId.

 

trying but this don't seem to work. Tried a variation of join and append, my splunk foo is dead

index=data
| lookup adexport.csv UserName as UserId OUTPUT UserId Title
| table _time UserId Title

 

 

Labels (2)
0 Karma
1 Solution

jenkinsta
Path Finder

Got it. actually renamed the field in csv and re-uploaded...

join UserId [inputlookup adexport.csv | fields UserId Title ]

why did I complicate things. 

If there is a faster way let me know

View solution in original post

0 Karma

jenkinsta
Path Finder

Got it. actually renamed the field in csv and re-uploaded...

join UserId [inputlookup adexport.csv | fields UserId Title ]

why did I complicate things. 

If there is a faster way let me know

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @jenkinsta ,

your solution surely work, but you could also try:

 

index=data
| lookup adexport.csv UserName AS UserId OUTPUT Title
| table _time UserId Title

 

Ciao.

Giuseppe

Get Updates on the Splunk Community!

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Get Inspired! We’ve Got Validation that Your Hard Work is Paying Off

We love our Splunk Community and want you to feel inspired by all your hard work! Eric Fusilero, our VP of ...

What's New in Splunk Enterprise 9.4: Features to Power Your Digital Resilience

Hey Splunky People! We are excited to share the latest updates in Splunk Enterprise 9.4. In this release we ...