Bug#926424: cloud-init: No log rotation
Package: cloud-init
Version: 18.3
Severity: wishlist
Tags: patch
Dear Maintainer,
The cloud-init system logs to the follow files:
- /var/log/cloud-init-output.log
- /var/log/cloud-init.log
There is nothing shipped which rotates these log files, which is a shame
as they'll grow everytime an instance is rebooted. We have some customers
with reasonably large log files now...
Please find attached a proposed logrotate file.
Cheers,
Andrew
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.0.0-trunk-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages cloud-init depends on:
ii cloud-guest-utils 0.29-1
ii fdisk 2.33.1-0.1
ii gdisk 1.0.3-1.1
ii ifupdown 0.8.35
ii locales 2.28-8
ii lsb-base 10.2019031300
ii lsb-release 10.2019031300
ii net-tools 1.60+git20180626.aebd88e-1
ii procps 2:3.3.15-2
ii python3 3.7.3-1
pn python3-configobj <none>
ii python3-jinja2 2.10-1
pn python3-jsonpatch <none>
pn python3-jsonschema <none>
pn python3-oauthlib <none>
ii python3-requests 2.21.0-1
ii python3-six 1.12.0-1
ii python3-yaml 3.13-2
ii util-linux 2.33.1-0.1
Versions of packages cloud-init recommends:
ii eatmydata 105-7
ii sudo 1.8.27-1
Versions of packages cloud-init suggests:
ii btrfs-progs 4.20.2-1
ii e2fsprogs 1.45.0-1
ii xfsprogs 4.20.0-1
/var/log/cloud-init.log
/var/log/cloud-init-output.log
{
weekly
rotate 4
compress
delaycompress
missingok
notifempty
}
Reply to: