Stop Elastic Agent
editStop Elastic Agent
editTo stop Elastic Agent and its related executables, stop the Elastic Agent process. Use the commands that work for your system.
The DEB package includes a service unit for Linux systems with systemd. On these systems, you can manage Elastic Agent by using the usual systemd commands.
Use systemctl
to stop the agent:
systemctl stop elastic-agent
Otherwise, use:
sudo service elastic-agent stop
Elastic Agent will restart automatically if the system is rebooted.
The RPM package includes a service unit for Linux systems with systemd. On these systems, you can manage Elastic Agent by using the usual systemd commands.
Use systemctl
to stop the agent:
systemctl stop elastic-agent
Otherwise, use:
sudo service elastic-agent stop
Elastic Agent will restart automatically if the system is rebooted.
Get the process ID (PID) of the elastic-agent
process:
ps | grep elastic-agent
Then kill the process, replacing the PID in this example with the PID from the grep command:
kill -9 90682
Elastic Agent will NOT restart automatically if the system is rebooted.
Get the process ID (PID) of the elastic-agent
process:
ps | grep elastic-agent
Then kill the process, replacing the PID in this example with the PID from the grep command:
kill -9 90682
Elastic Agent will NOT restart automatically if the system is rebooted.
If you installed Elastic Agent as a service, stop the service.
Stop-Service elastic-agent
If necessary, use Task Manager on Windows to stop Elastic Agent. This will kill the
elastic-agent
process and any sub-processes it created (such as Beats).
Elastic Agent will restart automatically if the system is rebooted.