Splunk Search

Can I do multiple joins with different fields

stavbergen
Explorer

Hello I have 3 sets of data and I want to join them all but they don't have the same common field, the trouble I'm having is linking table 2 to table 3.

Table 1
host, ip

Table 2
host, ip, user

Table 3
 user, location


Labels (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Yes, joins can be nested.

index=foo host=* ip=*
| join host, ip [ index=bar host=* ip=* user=*
  | join user [ index=baz user=* location=* ]
  ]
]
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Yes, joins can be nested.

index=foo host=* ip=*
| join host, ip [ index=bar host=* ip=* user=*
  | join user [ index=baz user=* location=* ]
  ]
]
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

[Live Demo] Watch SOC transformation in action with the reimagined Splunk Enterprise ...

Overwhelmed SOC? Splunk ES Has Your Back Tool sprawl, alert fatigue, and endless context switching are making ...

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...