启动logstash时报错

报错1

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.

报错原因:
之前运行的instance有缓冲,默认保存在data目录下

解决方法:
在这里插入图片描述

cd data

ls -a

rm -f .lock

报错2

[2022-08-26T11:14:57,802][ERROR][logstash.outputs.elasticsearch] Unknown setting ‘host’ for elasticsearch

报错原因是:
未知为elasticsearch设置’host’

这是未修改前:
在这里插入图片描述

修改后:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_50685659/article/details/126539832