Splunk Search

subsearch for multiple indexes

anudeep247
New Member

Hi All

I have 2 indexes. 1st indexes contains list of names. i have to pass each name as input to second index and calculate values for each name.

We can use two quires to get each name and pass to 2nd index. But i need them in single query. expecting output fields from 1st index as well as calculated fields from the 2nd index.. ?????

Tags (1)
0 Karma

somesoni2
Revered Legend

If name is the common field in both indexes, you can use below to get all attributes for a name from two indexes.

index=indexA | table name,..other fields from indexA... | join name [search index=indexB | table name,..other fields from indexB...]

somesoni2
Revered Legend

I believe so. Let me know if there are any issues.

0 Karma

anudeep247
New Member

Thank you somesoni2,
Here name is common for both indexes and i also have 2nd fields with different name. will this work??

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...