Package: rsyslog Version: 8.2102.0-2 Severity: wishlist rsyslog should use separate entries for each log file in /etc/logrotate.d/rsyslog. Otherwise, if there is any issue with some log file, none of the log files will be rotated; so, a bug in a package could affect the log files from other packages. For instance, I got that:
May 02 00:00:13 zira logrotate[1316487]: error: Compressing program wrote following message to stderr when compressing log /var/log/lpr.log.1: May 02 00:00:13 zira logrotate[1316487]: gzip: stdin: warning: file timestamp out of range for gzip format May 02 00:00:13 zira logrotate[1316487]: error: failed to compress log /var/log/lpr.log.1 May 02 00:00:13 zira systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE May 02 00:00:13 zira systemd[1]: logrotate.service: Failed with result 'exit-code'. May 02 00:00:13 zira systemd[1]: Failed to start Rotate log files. BTW, I'm wondering whether compressing with gzip is a good idea because of that. -- System Information: Debian Release: 11.0 APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'testing-security'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-6-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages rsyslog depends on: ii init-system-helpers 1.60 ii libc6 2.31-12 ii libestr0 0.1.10-2.1+b1 ii libfastjson4 0.99.9-1 ii liblognorm5 2.0.5-1.1 ii libsystemd0 247.3-5 ii libuuid1 2.36.1-7 ii zlib1g 1:1.2.11.dfsg-2 Versions of packages rsyslog recommends: ii logrotate 3.18.0-2 Versions of packages rsyslog suggests: pn rsyslog-doc <none> pn rsyslog-gssapi <none> pn rsyslog-mongodb <none> pn rsyslog-mysql | rsyslog-pgsql <none> pn rsyslog-openssl | rsyslog-gnutls <none> pn rsyslog-relp <none> -- Configuration Files: /etc/rsyslog.conf changed: module(load="imuxsock") # provides support for local system logging module(load="imklog") # provides kernel logging support $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat $FileOwner root $FileGroup adm $FileCreateMode 0640 $DirCreateMode 0755 $Umask 0022 $WorkDirectory /var/spool/rsyslog $IncludeConfig /etc/rsyslog.d/*.conf auth,authpriv.* /var/log/auth.log *.*;auth,authpriv.none -/var/log/syslog daemon.* -/var/log/daemon.log kern.* -/var/log/kern.log lpr.* -/var/log/lpr.log mail.* -/var/log/mail.log user.* -/var/log/user.log mail.warn -/var/log/mail.warn mail.err /var/log/mail.err *.=debug;\ auth,authpriv.none;\ mail.none -/var/log/debug *.=info;*.=notice;*.=warn;\ auth,authpriv.none;\ cron,daemon.none;\ mail.none -/var/log/messages *.emerg :omusrmsg:* -- no debconf information -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)