log-rotate
Specify how often logs are rotated every interval and how many logs have been kept recently. When the number of log files exceeds the remaining number, the old files are automatically deleted.
Attributes
When enable log file compression, log file will be like below.
Enable plugin
Here is an example of conf/config.yaml
: