LogStash 错误:Logstash could not be started because there is already another instance using the config

LogStash 错误信息: Logstash could not be started because there is already another instance using the configured data directory.  If you wish to run multiple instances, you must change the "path.data" setting. 

 

解决方法:

切换到logshash 安装目录:

比如我的目录在: /usr/share/logstash/logstash-6.2.4 下,

LogStash 错误:Logstash could not be started because there is already another instance using the config

找到data目录,然后进入cd  data 

查看 ls -lah 看到那个.lock 的文件删除即可

删除命令:rm  -rf  .lock  然后从新启动 即可

LogStash 错误:Logstash could not be started because there is already another instance using the config