You can start and stop the {agent} service on the host where it’s running, and it will no longer send data to {es}.
If you’ve stopped the {agent} service and want to restart it, use the commands that work with your system:
To stop {agent} and its related executables, stop the {agent} service. Use the commands that work with your system: