Bug#773425: please increase default logrotate duration for /var/log/dpkg.log

2016-03-21 Thread Guillem Jover
Hi!

On Thu, 2014-12-18 at 10:12:27 +0100, Stefano Zacchiroli wrote:
> Package: dpkg
> Version: 1.17.21
> Severity: normal
> 
> The default logrotate settings for /var/log/dpkg.log (from
> /etc/logrotate.d/dpkg) have "monthly 12", which grants a 1-year long history 
> of
> dpkg operations.
> 
> It would be desirable to have a longer history than that by default, ideally a
> *complete* history, dating back to the original installation.

Given that the default logrotate config sets both weekly and rotate, not
setting the intervals will make the entries use the defaults instead of
unlimited, and I don't see a way to reset those values.

> Considering how small dpkg.log usually is in comparison to other log files in
> /var/log, doing so looks feasible. The disk usage would cap at few megabytes
> for routinely updated stable machines over a 10-year period.
> 
> If you don't want to go unlimited history, bumping to a max of 10 years (maybe
> increasing rotation period as well to 1 year) would be nice. Anything in
> between would be nicer tha a 1-year long history only.

This would diverge greatly from other log files, some of which might
also be very tiny on normal installations. I also discussed this briefly
with the apt maintainers and they didn't see the point in changing the
apt log settings to have unified values across package manager software.
And lastly if not for simple historical reasons, such long term data
tends to be useless for stuff like bug tracking or reporting. Given all
the above, I'm rather uncomfortable with changing the defaults

I think that if something like this needs to be done, it needs to be
within a wider discussion on the default log rotation settings.
Otherwise I'm inclined to just close this request.

Regards,
Guillem



Bug#773425: please increase default logrotate duration for /var/log/dpkg.log

2014-12-18 Thread Stefano Zacchiroli
Package: dpkg
Version: 1.17.21
Severity: normal

The default logrotate settings for /var/log/dpkg.log (from
/etc/logrotate.d/dpkg) have monthly 12, which grants a 1-year long history of
dpkg operations.

It would be desirable to have a longer history than that by default, ideally a
*complete* history, dating back to the original installation.

Considering how small dpkg.log usually is in comparison to other log files in
/var/log, doing so looks feasible. The disk usage would cap at few megabytes
for routinely updated stable machines over a 10-year period.

If you don't want to go unlimited history, bumping to a max of 10 years (maybe
increasing rotation period as well to 1 year) would be nice. Anything in
between would be nicer tha a 1-year long history only.


Thanks for considering!
Cheers.

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dpkg depends on:
ii  libbz2-1.0   1.0.6-7+b2
ii  libc62.19-13
ii  liblzma5 5.1.1alpha+20120614-2+b3
ii  libselinux1  2.3-2
ii  tar  1.27.1-2+b1
ii  zlib1g   1:1.2.8.dfsg-2+b1

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt  1.0.9.4

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org