systemd stop logstash code example Example: kill logstash ps -aux | grep logstash kill -9 <process-id>