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

0 Karma

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.
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...