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!

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...

AI Adoption Hub Launch | Curated Resources to Get Started with AI in Splunk

Hey Splunk Practitioners and AI Enthusiasts! It’s no secret (or surprise) that AI is at the forefront of ...