Monitoring Splunk

restart splunkd remotely

a212830
Champion

Hi,

Is there a way (via Splunk cli?) to restart the splunkd process on remote servers?

Tags (1)
1 Solution

Leo
Splunk Employee
Splunk Employee

Using Splunk CLI:

splunk _internal call /services/server/control/restart -method POST -uri https://remoteserver:8089 -auth admin:goodpassword

Consider Web Terminal for Splunk app for situations when Splunk CLI or curl are not available.

View solution in original post

Leo
Splunk Employee
Splunk Employee

Using Splunk CLI:

splunk _internal call /services/server/control/restart -method POST -uri https://remoteserver:8089 -auth admin:goodpassword

Consider Web Terminal for Splunk app for situations when Splunk CLI or curl are not available.

MartinMcNutt
Communicator

Powershell Winrm is turning out to be very nice add in my environment (Windows) for managing my servers. I am in the process of setting up 40+ and I used powershell with winrm to manage almost all settings.

When WINRM is up and configured you can use:

(Examples)

Powershell.exe

Invoke-Command -ComputerName $computername { <Command> }

or

Enter-pssession -computername
Cd Splunk\bin
.\splunk.exe restart
exit-pssession

WINRM with powershell is like telnet for unix. Microsoft finally understands the power of scripting and remote management via the command line.

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

curl -k -u admin:PASSWORD https://HOSTNAMEREMOTE:8089/services/server/control/restart -X POST

This should work as long as the PASSWORD is NOT the default (mainly for forwarders)

Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...