docs: Clarify log roll_keep_for parameter (#26)

This commit is contained in:
Francis Lavoie 2020-04-28 12:13:25 -04:00 committed by GitHub
parent f3c3464ebd
commit ac03a8e7c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ output file <filename> {
- **roll_disabled** disables log rolling. This can lead to disk space depletion, so only use this if your log files are maintained some other way. - **roll_disabled** disables log rolling. This can lead to disk space depletion, so only use this if your log files are maintained some other way.
- **roll_size** is the size at which to roll the log file. Default: `100MiB` - **roll_size** is the size at which to roll the log file. Default: `100MiB`
- **roll_keep** is how many log files to keep before deleting the oldest ones. Default: `10` - **roll_keep** is how many log files to keep before deleting the oldest ones. Default: `10`
- **roll_keep_for** is how long to keep rolled files. Default: 90 days - **roll_keep_for** is how long to keep rolled files as a [duration string](/docs/conventions#durations). Default: `2160h`, i.e. 90 days
#### net #### net
@ -173,6 +173,7 @@ log {
output file /var/log/access.log { output file /var/log/access.log {
roll_size 1gb roll_size 1gb
roll_keep 5 roll_keep 5
roll_keep_for 720h
} }
} }
``` ```