-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add topic about stopping Elastic Agent * Add systemctl stop command * Add kill command * Add missing colon
- Loading branch information
1 parent
e4ed5da
commit 5a950aa
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[[stop-elastic-agent]] | ||
[role="xpack"] | ||
= Stop {agent} | ||
|
||
To stop {agent} and its related executables, stop the {agent} process. Use the | ||
commands that work for your system. | ||
|
||
//TODO: Replace with tabbed panel when it's out of experimental phase. | ||
|
||
*Windows:* | ||
|
||
If you installed the Agent as a service, stop the service. If | ||
necessary, use Task Manager on Windows to stop {agent}. This will kill the | ||
{agent} process and any sub-processes it created (such as {beats}). | ||
|
||
*Linux or macOS:* | ||
|
||
Run the following command to get the ID of the `elastic-agent` process: | ||
|
||
[source,shell] | ||
---- | ||
ps | grep elastic-agent | ||
---- | ||
|
||
Then kill the process: | ||
|
||
[source,shell] | ||
---- | ||
kill -9 PID | ||
---- | ||
|
||
Where `PID` is the ID of the `elastic-agent` process. | ||
|
||
*Systemd:* | ||
|
||
The DEB and RPM packages include a service unit for Linux systems with systemd. | ||
On these systems, you can manage {agent} by using systemd commands. Use | ||
`systemctl` to stop the Agent: | ||
|
||
[source,shell] | ||
---- | ||
systemctl stop elastic-agent | ||
---- |