Files
cloudron-box/src/logrotate.ejs
T

29 lines
737 B
Plaintext
Raw Normal View History

2019-07-30 14:47:33 -07:00
# Generated by apptask
2022-11-17 00:47:24 +01:00
# keep upto 5 rotated logs. rotation triggered weekly or ahead of time if size is > 10M
<%= volumePath %>/*.log <%= volumePath %>/*/*.log <%= volumePath %>/*/*/*.log {
2022-11-17 00:47:24 +01:00
rotate 5
weekly
maxage 14
2019-07-30 14:47:33 -07:00
compress
2022-11-17 00:47:24 +01:00
maxsize 10M
2019-07-30 14:47:33 -07:00
missingok
delaycompress
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
}
2019-07-30 14:47:33 -07:00
/home/yellowtent/platformdata/logs/<%= appId %>/*.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
}