【发布时间】: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