当前位置:首页 - Elastic

LogStash 报错 Logstash could not be started because there is already anothe

作者:高景洋 日期:2021-05-15 06:54:55 浏览次数:1750

执行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>
当前header:Host: r4.com.cn X-Host1: r4.com.cn X-Host2: r4.com.cn X-Host3: 127.0.0.1:8080 X-Forwarded-For: 18.217.84.171 X-Real-Ip: 18.217.84.171 X-Domain: r4.com.cn X-Request: GET /art190.aspx HTTP/1.1 X-Request-Uri: /art190.aspx Connection: close Accept: */* User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)