How to stop a logstash Config file running in Ubuntu?
You can use the pkill
command and specify the name of the process(es) you want to kill
pkill logstash
Or the killall
command works as well the same way
killall logstash
As Val states, pkill should work to resolve what you are facing.
To avoid this in future why don't you create a small service file so which uses a PID file so you can't have multiple instances running? Here is what I did: