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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...