Reduce log retention to 7 days out of the box
authorSam <sam.saffron@gmail.com>
Tue, 1 May 2018 23:34:47 +0000 (09:34 +1000)
committerSam <sam.saffron@gmail.com>
Tue, 1 May 2018 23:34:47 +0000 (09:34 +1000)
Remove notifempty so logs unconditionally rotate

templates/web.template.yml

index 14149479982c83576e747881c66f15530e5a9e0d..ab2522f2d2e4604f596564d611dce3dab9c1261d 100644 (file)
@@ -227,11 +227,10 @@ run:
      contents: |
         /shared/log/rails/*.log
         {
-                rotate 14
+                rotate 7
                 dateext
                 daily
                 missingok
-                notifempty
                 delaycompress
                 compress
                 postrotate
@@ -245,10 +244,9 @@ run:
         /var/log/nginx/*.log {
           daily
           missingok
-          rotate 14
+          rotate 7
           compress
           delaycompress
-          notifempty
           create 0644 www-data www-data
           sharedscripts
           postrotate