Getting Data In

What parameters should I pass to this Splunk REST API endpoint to archive the same thing that 'splunk offline --enforce-counts' does?

rongshengfang
Explorer

Does anybody know what parameters I should pass to the REST API endpoint /services/cluster/slave/control/control/decommission to archive the same thing that command 'splunk offline --enforce-counts' does?

Thanks!

MuS
Legend

Greeting from the future,

according to the latest docs https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTcluster#cluster.2Fslave.2Fcontrol.2F... it is like this :

curl -k -u admin:pass https://indexer:8089/services/cluster/slave/control/control/decommission -X POST

cheers, MuS

0 Karma

jacobwilkins
Communicator

Through some testing, it seems that enforce_counts=true might be the correct POST parameter.

It would be nice if someone from Splunk could confirm.

melcher
Explorer

I've tested and confirmed that when you add the enforce_counts=true to the api call like seen below, it will perform a full decommissioning of the host. Thank you for bringing it up!

 

curl -k -u admin:pass https://indexer:8089/services/cluster/slave/control/control/decommission -d enforce_counts=true -X POST

 

 

0 Karma

jacobwilkins
Communicator

Bumping this because I'd really like to know the answer.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...