Filebeat自身日志输出问题

2019-12-06  本文已影响0人  Kscoq

通过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

上一篇 下一篇

猜你喜欢

热点阅读