Files
cloudron-box/setup/start/logrotate/platform
T

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-05-15 11:08:00 +02:00
# logrotate config for app, addon and task logs
2019-07-30 14:47:33 -07:00
# man 7 glob
/home/yellowtent/platformdata/logs/graphite/*.log
/home/yellowtent/platformdata/logs/mail/*.log
/home/yellowtent/platformdata/logs/mysql/*.log
/home/yellowtent/platformdata/logs/mongodb/*.log
/home/yellowtent/platformdata/logs/postgresql/*.log
/home/yellowtent/platformdata/logs/sftp/*.log
/home/yellowtent/platformdata/logs/redis-*/*.log
/home/yellowtent/platformdata/logs/collectd/*.log
2020-05-11 13:14:40 -07:00
/home/yellowtent/platformdata/logs/turn/*.log
2019-07-30 14:47:33 -07:00
/home/yellowtent/platformdata/logs/updater/*.log {
# only keep one rotated file, we currently do not send that over the api
rotate 1
2022-11-17 00:47:24 +01:00
weekly
maxage 14
maxsize 10M
2019-07-30 14:47:33 -07:00
missingok
# we never compress so we can simply tail the files
nocompress
2020-05-11 13:59:52 -07:00
# this truncates the original log file and not the rotated one
2019-07-30 14:47:33 -07:00
copytruncate
}
# keep task logs for a week. the 'nocreate' option ensures empty log files are not
2022-11-17 00:47:24 +01:00
# created post rotation. task logs are kept for 7 days
2019-07-30 14:47:33 -07:00
/home/yellowtent/platformdata/logs/tasks/*.log {
minage 7
daily
rotate 0
missingok
nocreate
}