Logstash 7 错误“Logstash could not be started because there is already another instance using the con”

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/weixin_43236191/article/details/102699918

  在配置Logstash 7.4 服务启动时报错,报错信息如下:

 “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.”的解决办法。

Logstash 执行下面的命令报错:

错误提示:

原因:之前运行的instance有缓冲,保存在path.data里面有.lock文件,删除掉就可以。

解决办法:

在 logstash.yml 文件中找到 Data path 的路径(默认在安装目录的data目录下)

查看是否存在 .lock 文件,如果存在把它删除

再次启动服务,测试是否成功

服务启动正常,问题解决。

猜你喜欢

转载自blog.csdn.net/weixin_43236191/article/details/102699918