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!

Cloud Platform & Enterprise: Classic Dashboard Export Feature Deprecation

As of Splunk Cloud Platform 9.3.2408 and Splunk Enterprise 9.4, classic dashboard export features are now ...

Explore the Latest Educational Offerings from Splunk (November Releases)

At Splunk Education, we are committed to providing a robust learning experience for all users, regardless of ...

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...