Knowledge Management

Merge Statistics of 2 Indexes

TylerJVitale
Explorer

If I have one index that pairs host with application data, and another index that pairs host with statistical values like cpu %, memory, etc., how do I merge the indices so that a search like host=host1 application=app|stats avg(cpu) would work?

Tags (1)
0 Karma

skoelpin
SplunkTrust
SplunkTrust

Like this

(index=A OR index=b)
| stats max() by <common_field>
0 Karma

TylerJVitale
Explorer

@skoelpin I would like to do something like |stats max() by application though, and "application" is not a common field.

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,  ...