We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f4e635 commit 6a37badCopy full SHA for 6a37bad
README.md
@@ -3,8 +3,8 @@
3
Starts with default nginx container and adds in logrotate
4
5
The default settings are:
6
- * Rotate logs as soon as they reach 5M in size
7
- * Keep up to 5 old log files
+ * Logs are rotated weekly
+ * Keep up to 13 old log files, for a total of 91 days
8
* Files are compressed
9
10
Settings should be able to be overwritten by mounting an updated config file to /etc/logrotate.d/nginx
nginx.logrotate
@@ -1,7 +1,7 @@
1
/var/log/nginx/*.log {
2
- size 5M
+ weekly
missingok
- rotate 5
+ rotate 13 ## 7*13 = 91 days
compress
delaycompress
notifempty
0 commit comments