Deployment Architecture

metadata about indexes (not per index)

brettcave
Builder

hi, I am wondering if there's a way to get summary data of all indexes, similar to the metadata command, but that returns a list of indexes and stats (e.g. index size). For example:

| indexmetadata | table IndexName IndexSize
Tags (1)
0 Karma
1 Solution

brettcave
Builder

This is one way:

| metadata type=hosts index="main" | eval indexName="main" | append [ metadata type=hosts index="custom1" | eval indexName="custom1" ] | stats sum(totalCount) as Count by indexName

View solution in original post

0 Karma

brettcave
Builder

This is one way:

| metadata type=hosts index="main" | eval indexName="main" | append [ metadata type=hosts index="custom1" | eval indexName="custom1" ] | stats sum(totalCount) as Count by indexName
0 Karma

brettcave
Builder

This is one way:

| metadata type=hosts index="main" | eval indexName="main" | append [ metadata type=hosts index="custom1" | eval indexName="custom1" ] | stats sum(totalCount) as Count by indexName
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

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