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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...