Rotate out older logs

Bug #1914473 reported by Haw Loeung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
APT Stress Test Charm
Invalid
Undecided
Unassigned

Bug Description

Hi,

On one such unit:

| ubuntu@machine-3:~$ ls -la /var/log/apt-stress* -tr
| -rw-r--r-- 1 apt-stresstest adm 270919 Nov 6 00:00 /var/log/apt-stresstest.log.90.gz
| -rw-r--r-- 1 apt-stresstest adm 271307 Nov 7 00:00 /var/log/apt-stresstest.log.89.gz
| -rw-r--r-- 1 apt-stresstest adm 271329 Nov 8 00:00 /var/log/apt-stresstest.log.88.gz
| -rw-r--r-- 1 apt-stresstest adm 270779 Nov 9 00:00 /var/log/apt-stresstest.log.87.gz
| -rw-r--r-- 1 apt-stresstest adm 270887 Nov 10 00:00 /var/log/apt-stresstest.log.86.gz
| -rw-r--r-- 1 apt-stresstest adm 270812 Nov 11 00:00 /var/log/apt-stresstest.log.85.gz
| ...
| -rw-r--r-- 1 apt-stresstest adm 270174 Feb 1 00:00 /var/log/apt-stresstest.log.3.gz
| -rw-r--r-- 1 apt-stresstest adm 270725 Feb 2 00:00 /var/log/apt-stresstest.log.2.gz
| -rw-r--r-- 1 apt-stresstest adm 3765600 Feb 3 00:00 /var/log/apt-stresstest.log.1
| -rw-r--r-- 1 apt-stresstest adm 2924521 Feb 3 21:58 /var/log/apt-stresstest.log
| ubuntu@machine-3:~$

We should update the charm to ship out logrotate configs to rotate those. Also would be nice to use dateext and make retention configurable (with a good start being 60 days).

Revision history for this message
Haw Loeung (hloeung) wrote :
Changed in apt-stresstest-charm:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers