【问题标题】:fluentd not honoring log rotation流利的不尊重日志轮换
【发布时间】:2020-08-02 16:13:20
【问题描述】:

使用fluent/fluentd:v1.3.2 docker镜像, 我正在使用文件插件,下面是 fluentd.conf 文件中的文件插件设置

<store>
   @type file
   path /myproduct/test/logs
   append false
   compress gzip
</store>

使用以下参数启动 fluentd:

/usr/bin/fluentd -c /test/fluent.conf --log-rotate-age 5 --log-rotate-size 1000

生成 5 个文件后,我没有看到文件被清除。如果我在 fluentd.conf 文件中遗漏任何内容,请提出建议。

【问题讨论】:

    标签: logging rotation fluent fluentd purge


    【解决方案1】:

    --log 选项丢失。只要您在 fluentd 命令行中提供 --log 参数,一切都会按预期工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-15
      • 2017-03-08
      • 1970-01-01
      • 1970-01-01
      • 2020-01-23
      • 2014-09-07
      • 2017-03-29
      • 2021-05-04
      相关资源
      最近更新 更多