https://unix.stackexchange.com/questions/261696/logrotation-rotate-and-maxage-command https://blog.gsterling.de/2017/10/03/logrotate-misconceptions-about-maxsize-and-size/
13 lines
325 B
Plaintext
13 lines
325 B
Plaintext
# logrotate config for box logs
|
|
|
|
# we rotate weekly, unless 10M was hit. Keep only up to 5 rotated files. Also, delete if > 14 days old
|
|
/home/yellowtent/platformdata/logs/box.log {
|
|
rotate 5
|
|
weekly
|
|
maxage 14
|
|
maxsize 10M
|
|
# we never compress so we can simply tail the files
|
|
nocompress
|
|
copytruncate
|
|
}
|