maas_remote_syslog_compress is unnecessarily chatty

Bug #1920019 reported by Mathieu Trudel-Lapierre
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Low
Mathieu Trudel-Lapierre

Bug Description

mtrudel@s8mtl1-deploy1-prd:/etc/cron.d$ cat maas_remote_syslog_compress
# Compress log files not changed in more than 48 hours:
30 4 * * * root find /var/log/maas/rsyslog -type f -mtime +2 -exec bzip2 '{}' \;

This script runs every day. I get mail for this forwarded elsewhere; but there's a risk of filling up disks with these logs if there is enough use of MAAS:

bzip2: Input file /var/log/maas/rsyslog/s8mtl2-wgvpn1-stg/2020-10-22/messages.bz2 already has .bz2 suffix.
bzip2: Input file /var/log/maas/rsyslog/kind-tomcat/2020-04-15/messages.bz2 already has .bz2 suffix.
bzip2: Input file /var/log/maas/rsyslog/kind-tomcat/2020-04-16/messages.bz2 already has .bz2 suffix.
bzip2: Input file /var/log/maas/rsyslog/easy-hippo/2020-12-15/messages.bz2 already has .bz2 suffix.
[...]

Related branches

Changed in maas:
status: New → In Progress
assignee: nobody → Mathieu Trudel-Lapierre (cyphermox)
importance: Undecided → Low
milestone: none → 2.10-beta1
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.