通过rpm安装的filebeat,测试发现Filebeat自身日志未输出到 /var/log/filebeat,而输出到/var/log/message
查询发现这是一个已知还未修复的bug。[all beats] Remove BEAT_LOG_OPTS from the systemd unit file · Issue #12024 · elastic/beats · GitHub
解决方式(已验证):
编辑/lib/systemd/system/filebeat.service
将 Environment="BEAT_LOG_OPTS=-e" 改为Environment="BEAT_LOG_OPTS="
systemctl daemon-reload
systemctl restart filebeat.service
网友评论