Getting Data In

Splunk api to get all the indexes from all the indexer masters from search head

sumandeb_git
New Member

Hi,
I want to know if there is an api to retrieve all the indexes from all the indexer masters from search head.
we have one LB--->SH clusters-->Many cluster Masters (indexer)-->Peer nodes associated with each cluster (indexer)

So I want a single API that can get me the indexes irrespective of from which cluster/nodes they exist.
Also in JSON format and unlimited pagination ( not default 30 but count=-1)

0 Karma

skalliger
Motivator

Hi,

first of all, please don't refer to a Cluster Master as being an indexer. A CM basically is a Search Head. 🙂
If you're talking about "many indexers" I hope you actually mean "many indexer clusters (IDXC)" because otherwise, multiple CMs don't make any sense without those IDXC.

Here are three endpoints that you might find useful:

| rest /services/data/index-volumes
| rest /services/data/indexes
| rest /services/data/indexes-extended

Skalli

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...