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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...