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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...