Type to search.

Start and stop Elastic Agents on edge hosts

Serverless

Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

Serverless interfaces and procedures might differ from classic Elastic Stack deployments.

Stack

The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

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.

Tip Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud. Availability Preview This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply. Serverless interfaces and procedures might differ from classic Elastic Stack deployments. The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability Planned We plan to add this functionality in a future Elastic Stack update. Subject to changes. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

You can also restart Fleet-managed Elastic Agents remotely from Kibana, without logging in to the host. Refer to Restart Fleet-managed Elastic Agents.

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

Shell
sudo launchctl load /Library/LaunchDaemons/co.elastic.elastic-agent.plist
Shell
sudo service elastic-agent start
Shell
Start-Service Elastic Agent

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 start the agent:

Shell
sudo systemctl start elastic-agent

Otherwise, use:

Shell
sudo service elastic-agent start

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 start the agent:

Shell
sudo systemctl start elastic-agent

Otherwise, use:

Shell
sudo service elastic-agent start

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

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

Elastic Agent will restart automatically if the system is rebooted.

Shell
sudo service elastic-agent stop
Note

Elastic Agent will restart automatically if the system is rebooted.

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

Note

Elastic Agent will restart automatically if the system is rebooted.

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:

Shell
sudo systemctl stop elastic-agent

Otherwise, use:

Shell
sudo service elastic-agent stop
Note

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:

Shell
sudo systemctl stop elastic-agent

Otherwise, use:

Shell
sudo service elastic-agent stop
Note

Elastic Agent will restart automatically if the system is rebooted.