Start and stop Elastic Agents on edge hosts

Start and stop Elastic Agents on edge hostsedit

You can start and stop the Elastic Agent service on the host where it’s running, and it will no longer send data to Elasticsearch.

Start Elastic Agentedit

If you’ve stopped the Elastic Agent service and want to restart it, use the commands that work with your system:

sudo launchctl load /Library/LaunchDaemons/co.elastic.elastic-agent.plist

Stop Elastic Agentedit

To stop Elastic Agent and its related executables, stop the Elastic Agent service. Use the commands that work with your system:

sudo launchctl unload /Library/LaunchDaemons/co.elastic.elastic-agent.plist

Elastic Agent will restart automatically if the system is rebooted.