Getting Data In

What is the REST API endpoint used to remove an index peer from an index cluster?

brent_weaver
Builder

Hello all.
I am scaling back our index tier through automation and I have been unable to find out how to remove a peer from the index cluster via REST API. I know that I need the GUID of the peer I want to remove, that's easy, I just want to be able to do all this work from "afar" and not have to log in to each instance to do this.

So the question is, what is the REST API endpoint I would use to remove an index peer from an index cluster?

Thanks in advance.

0 Karma

arjunpkishore5
Motivator

You can use cluster/master/peers to get all peers in your cluster. The title field gives you the guid (The title field is not listed in the return values. However, it is returned. Look at the sample response XML) . and then you can use cluster/master/control/control/remove_peers to use the guid to remove the peer.

Docs: https://docs.splunk.com/Documentation/Splunk/8.0.0/RESTREF/RESTcluster

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...