简体   繁体   English

Filebeat Service将无法在CentOS 7上启动

[英]Filebeat Service will not start on CentOS 7

Filebeat will not start on my CentOS 7 box. Filebeat将不会在我的CentOS 7机器上启动。 I have Logstash running fine, Kibana can be accessed, and I even installed packetbeat to see if it was something wrong with the beats, but Packetbeat works fine. 我的Logstash运行良好,可以访问Kibana,甚至安装了packetbeat来查看节拍是否有问题,但是Packetbeat可以正常工作。

Here is what is happening when I try to start filebeat: 这是我尝试启动filebeat时发生的情况:

系统状态故障

Here are the filebeat logs: 这是文件拍日志:

Filebeat日志

My Filebeat config passes the '-configtest' option, so it can't be that. 我的Filebeat配置通过了'-configtest'选项,所以不是那样的。 The only output that I get from the debugging option is this: 我从调试选项中获得的唯一输出是这样的:

Exiting: Could not start registrar: Error loading state: Error decoding states: EOF

I have also tried these two commands to no avail: 我也尝试了这两个命令都没有用:

systemctl reset-failed filebeat.service
systemctl start filebeat.service

Anyone have any other commands to try to try and get this to work? 有人还有其他命令可以尝试使其正常工作吗?

You need to delete the registry file, this is a known issue appartently. 您需要删除注册表文件,这显然是一个已知问题。 Forum post with an answer from the ELK guys 论坛帖子以及ELK家伙的回答

rm -r /var/lib/filebeat/registry
systemctl reset-failed filebeat
systemctl start filebeat

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM