Juju logs are not rotated

Bug #1343131 reported by Ante Karamatić
This bug report is a duplicate of:  Bug #1078213: logs are not logrotated. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
New
Undecided
Unassigned

Bug Description

Juju should make sure its logs are rotated. ATM it assumes disk space on state server, or any other deployed node, is endless. This can cause loss of service and lead to corruption of mongodb. In at least two events I've seen disks filled with juju logs, and for example, here it's taking big amount of disk space, considering it's been running only for a week:

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 20G 7.1G 12G 39% /

# du -hs /var/log/juju/
5.3G /var/log/juju/

# ls /var/log/juju/*
/var/log/juju/all-machines.log /var/log/juju/ca-cert.pem /var/log/juju/machine-0.log /var/log/juju/rsyslog-cert.pem /var/log/juju/rsyslog-key.pem

# du -hs /var/log/juju/*
3.3G /var/log/juju/all-machines.log
4.0K /var/log/juju/ca-cert.pem
2.1G /var/log/juju/machine-0.log
4.0K /var/log/juju/rsyslog-cert.pem
4.0K /var/log/juju/rsyslog-key.pem

# ls /etc/logrotate.d/
apport apt aptitude dpkg landscape-client ppp rsyslog ufw unattended-upgrades upstart

Tags: logging
Curtis Hovey (sinzui)
tags: added: logging
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.