logrotate does not rotate logs (rsyslog)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
logrotate (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
(Expected: auth.log, kern.log, syslog rotated "daily"/"weakly" according to /etd/..., actually: no rotation even after weeks; and manual forcing may fail.)
Being concerned about the amount of GBs that a Lubuntu persistent installation on a USB flash drive may write per day, I observed that auth.log, kern.log, and syslog grow to many MB. They may get about 1000 entries a day, resulting in many GB load for the USB drive per day. I learnt about logrotate and rsyslog and modified /etc/logrotate.conf and /etc/logrotate.
I have kept USB installations of Lubuntu 14.04.1 in parallel and saved them after some days, so I could report about a number of experiments. E.g., I started 2014-08-31, and I have a snapshot from 2014-09-22 where I had not changed /etc/logrotate.
#51879 (2006) and #1278193 (Feb 2014) are very similar, however:
* I observed growing kern.log and syslog to more than 100MB (to "out of memory" finally) in some installations in summer 2013; in later installations the same year and before 14.04, the problem vanished (I watched the sizes manually/regularly – difference to #51879: after 2006, problem recurred, vanished, recurred).
* With Lubuntu 14.04.1 recently, I changed "weekly" into "daily" in /etc/logratate.conf and in /etc/logrotate.
Actually I also have tried sudo logrotate -f /etc/logrotate.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: logrotate 3.8.7-1ubuntu1
ProcVersionSign
Uname: Linux 3.13.0-32-generic i686
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: i386
CasperVersion: 1.340
CurrentDesktop: LXDE
Date: Sat Oct 25 01:02:40 2014
LiveMediaBuild: Lubuntu 14.04.1 LTS "Trusty Tahr" - Release i386 (20140722.2)
SourcePackage: logrotate
UpgradeStatus: No upgrade log present (probably fresh install)
"weekly" indeed supported extremely "weakly"