Monitoring Splunk

splunk process compulsion stop

kobayashikenji
Explorer

Hi

I want to kill the process of Splunk.
May be performed by specifying the "PID" with this command ?

kill -9 <PID>

There is no problem?

Tags (2)
0 Karma

miteshvohra
Contributor

You can kill all processes on 'splunkd' with

kill `ps -ef | grep splunkd | egrep -v grep | awk '{print $2}'`

But, just like @esix_splunk mentioned, make sure you restart Splunk with the correct user and that, using Splunk's native commands to Start/Stop/Restart the service is much cleaner.

Mitesh.

kobayashikenji
Explorer

Thank you very much.
I wanted absolutely compulsion stop.
Normally, you run the answer @ esix_splunk.

kenji.

0 Karma

miteshvohra
Contributor

@kobayashikenji I am bit curious to know about the purpose of force-stopping Splunk. 🙂

0 Karma

esix_splunk
Splunk Employee
Splunk Employee

This works, make sure when you restart Splunk, you are using the correct user.

But why not do '/opt/splunk/splunk stop' or 'service splunk stop'

0 Karma

kobayashikenji
Explorer

If not stop at Splunk command,
Because I want to compulsion stop.
Normally, will use the "splunk stop".
Answer Thank you very much.

0 Karma
Get Updates on the Splunk Community!

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

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