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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

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