I am running logstash with '1' worker process to load data from sql to elastic using command line 'bin/logstash -f logstash.conf' on regular intervals. it is executing fin with no issues in positive scenarios.
Sometimes logstash process does not complete (it may be due to error. it tries to reconnect/retry with out exit). In these scenarios, i would like to force shutdown active logstash if running so that i can trigger a new process for logstash.
Right now it throws message 'logstash is already running' and to enable again, i have to restart my system. Is there any way from command prompt to force exit running logstash so that i can trigger a new process.