Start and stop Elastic Agents on edge hosts

edit

Start and stop Elastic Agents on edge hosts

edit

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 Agent

edit

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 Agent

edit

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.