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

  在配置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 执行下面的命令报错:

Logstash 7 错误“Logstash could not be started because there is already another instance using the con”_第1张图片

错误提示:

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

解决办法:

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

Logstash 7 错误“Logstash could not be started because there is already another instance using the con”_第2张图片

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

Logstash 7 错误“Logstash could not be started because there is already another instance using the con”_第3张图片

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

Logstash 7 错误“Logstash could not be started because there is already another instance using the con”_第4张图片

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

你可能感兴趣的:(Logstash7.4,Logstash)