Inquiry about possibility to automate OS patching for a Splunk indexer cluster using REST endpoint instead of using the CLI command:
$SPLUNK_HOME/bin/splunk offline --answer-yes command
For OS automation purposes, the CLI command down below can be used to automate OS patching by invoking it from the OS-patching/orchestration framework and waiting for it to complete before stopping or rebooting the host.
$SPLUNK_HOME/bin/splunk offline --answer-yes command
Theoretically speaking, the endpoint down below it's associated with the CLI command for the same purpose.
POST https://<cluster-manager>:8089/services/cluster/manager/control/control/decommissionWhile the endpoint is associated to the CLI command and could, in theory, be used to replace the CLI expression when in need of HTTP usage; it is not recommended to do so as this is not officially documented.
Furthermore, it is also not recommended to use as the primary method for OS patching automation as this is not officially supported, and it's availability, request parameters, and behavior could change between releases, making it unreliable in the long term.
Is there a rest endpoint to take a peer offline temporarily?
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
18-Nov-2026
|
Initial Release |