IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Stop Elastic Agent

edit

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