Splunk Enterprise

Is there a REST API for rolling-restart on Search Head Captain

anwarmian
Communicator

Hello,

I am trying to find a REST API call to do a rolling-restart on Search Head Cluster captain so that I can schedule a curl command.

Thanks in advance,

0 Karma

hliu_splunk
Splunk Employee
Splunk Employee

The REST api for rolling restart of SHC is there.
it is /shcluster/captain/control/control/restart.

0 Karma

somesoni2
Revered Legend

I don't believe any REST API endpoint is available for rolling restart (or for apply shcluster-bundle ) of search head cluster. Those should be handled via Splunk CLI commands. I've not tested, but you may be able to run a Splunk CLI on remote instance (see this https://docs.splunk.com/Documentation/Splunk/6.6.2/Admin/AccessandusetheCLIonaremoteserver#Send_CLI_...)

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

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