美文网首页
Filebeat自身日志输出问题

Filebeat自身日志输出问题

作者: Kscoq | 来源:发表于2019-12-06 10:12 被阅读0次

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

    相关文章

      网友评论

          本文标题:Filebeat自身日志输出问题

          本文链接:https://www.haomeiwen.com/subject/aumsgctx.html