Starting/stopping
Since Sematext Agent can be installed in different environments, there are different ways in which it can be restarted or stopped.
Linux¶
To stop the agent, run:
To restart the agent, run:
To remove the agent, run distribution-specific command to remove the sematext-agent rpm or deb package.
Windows¶
Check the Windows installation page for starting, stoping or restarting Sematext Agent in Windows.
Docker¶
In Docker environment agent can be started using docker run
command or using a docker-compose config.
To stop the agent, run:
and remove it with:
To avoid agent starting after docker-compose up
is executed the next time, ensure its definition is removed from your
docker-compose config file.
Swarm¶
In Swarm environment agent can be started using docker service create
command or using a docker-compose config.
To remove the agent run:
When using docker-compose, ensure you remove the agent from your config.
Kubernetes¶
To remove the agent, run:
When using helm, remove the agent with:
If you used Sematext Operator, remove the agent with:
kubectl delete SematextAgent sematextagent
kubectl delete -f https://raw.githubusercontent.com/sematext/sematext-operator/master/bundle.yaml
Nomad¶
To stop the agent running in Nomad environment, run:
To remove it, run:
Podman¶
Removing the agent in Podman setup can be done with the command: