LogStash 报错 Logstash could not be started because there is already anothe
执行LogStash 脚本时 报以下错误
Sending Logstash logs to /root/soft/logstash-6.4.0/logs which is now configured via log4j2.properties
[2021-05-15T05:38:15,730][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2021-05-15T05:38:15,762][FATAL][logstash.runner ] 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.
[2021-05-15T05:38:15,774][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
原因:好好看报错内容,已经有一个LogStash脚本在运行了
处理方法:ps -ef|grep LogStash
查看当前有哪些LogStash 任务在运行,找到 进程id, Kill 掉
然后重新运行LogStash 脚本
<a href="http://r4.com.cn/art190.aspx">LogStash 报错 Logstash could not be started because there is already anothe</a>