Debian上排查Filebeat故障可按以下步骤进行:
/var/log/filebeat/或/var/log/beats/filebeat/目录下的日志文件,关注ERROR或FATAL信息。/etc/filebeat/filebeat.yml中路径、输出目标(如Elasticsearch/Logstash地址、端口)等配置正确,使用sudo filebeat test config测试语法。top或htop查看内存、CPU使用情况,确保资源充足。ping或curl测试网络连通性,用ufw开放对应端口(如5044)。chown和chmod调整。sudo systemctl restart filebeat。参考来源: