Splunk Search

JOIN two tables in Splunk

kthakkar
New Member

Need to extract the value of 'A' from Query 1 -
Then do a JOIN to extract the value of 'A' if they occur in Query 2
Match the value of 'A' to corresponding values of 'B' which are a part of the Query 2.

I am able to get the JOIN working and it gives me all the A's that occur in the Query 2. Now I need to extract the value of corresponding 'B' in Query 2.

Tags (1)
0 Karma

krugger
Communicator

More information would be nice, but from what you wrote I can suggest this:

index="AAA" somecondition |
rename somefieldA as commonfield |
join commonfield [ search index="BBB" anothercondition | table commonfield,additionalinfoB ]

This will produce a table with the information from AAA plus the additional information from B where somefieldA is equal to commonfield in B.

lguinn2
Legend

Sorry but this is not enough information. Can we see the actual query? We especially need to see the query where join is working. Also, the 'A' query and the 'B' query.

Also, what is the criteria for joining 'A' and 'B'? is there a transaction id or key that is common to both queries?

0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...