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

[elk@k8s-node data]$ ls -a
.  ..  dead_letter_queue  .lock  plugins  queue  uuid
[elk@k8s-node data]$ rm -f .lock

 

posted @ 2022-07-26 13:30  opscool  阅读(684)  评论(0)    收藏  举报