Splunk Enterprise

How to get a list or details of indexes based on the cluster/group they are residing on?

psamuel69
Explorer

Hello Splunkers ,

I am in need of finding a list of Indexes that are from a particular indexer cluster or group.

Like when you go to DMC and look for Indexes and volumes(Indexes and Volumes: Instance) , there is an option to filter them via Groups .I want a similar search that can be powered from the _internal log or some other rest endpoint from a search head .
Thanks in advance !
Sam

Labels (2)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

When you are knowing those group names you can use those on rest calls like

|rest splunk_server_group=dmc_group_cluster_master splunk_server_group="dmc_indexerclustergroup_cluster-name" /services/cluster/master/indexes

 This should run on MC where some of those gourds are automatically defined and you could create more groups as needed.

r. Ismo

0 Karma

psamuel69
Explorer

Thank you for your response .
As an out of the box functionality Splunk DMC doest provide those filters and i can use them on the DMC host to create me Dashboards etc .

But my question is in terms of how to get the same group related info available on the Search Heads , so that i can save a Dashboard or alert using the same .

Use case : To know which region a index is getting its data from  .

0 Karma

isoutamo
SplunkTrust
SplunkTrust

You could replace all splunk_server_group definitions wit one splunk_server=<your indexers with suitable expression like idx*>

0 Karma
Get Updates on the Splunk Community!

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

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...