Hi, I am writing to Splunk from C# code and need to get a list of Indexers so i can write load balancing logic myself. Is there a REST API i can use to query the master node and get list of Indexers ?
Yes, use the below endpoint to get the list of indexers from any search head -
| rest /servicesNS/-/-/search/distributed/peers splunk_server=local | table title host_fqdn
OR
curl -s -k -u admin:password https://<search_head>:8089/servicesNS/-/-/search/distributed/peers