Splunk Search

Three Join Splunk query

benj851
Explorer

Hello; 

I understand joins are expensive in Splunk. When I have a query that has two joins, which query executes first? Asking because I want the most limiting subsearch to execute, followed by a second subsearch, then the main search. 

Ex. 

index=app host=foo Dataquery1
| join type=inner 
[ search index=app host=foo | table Dataquery2.Result1]
| join type=inner 
[search index=app host=foo | table Dataquery2.Result1, Dataquery3.Result1]
|  table Dataquery1.Result, Dataquery2.Result1, Dataquery3.Result1

Labels (2)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @benj851,

sorry but I don't understand whar you really want to know.

Anyway, the search execution order is from left to right, so the main search is always executed as the first.

Only one question, maybe the search sample you inserted in your question isn't real, but if this is your search, you don't need to use join, you could use a simpler search:

index=app host=foo Dataquery1
| table Dataquery1.Result, Dataquery2.Result1, Dataquery3.Result1

If you could share your real search, mayby we could help you better.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...