Marcus Meissner wrote:
On Sun, Mar 22, 2009 at 03:59:23PM +0100, Carlos E. R. wrote:
On Sunday, 2009-03-22 at 15:18 +0100, Marcus Meissner wrote:
But, from the posts here, the problem is not only that it is not rotated, but that the log can be huge, several gigabytes. Because it is not rotated daily, if needed... Even so; I keep logs for years and the total is not one gig. Even rotating logs of 15 GB, compressed, would involve too much space for a single log. I also have my doubts that you can gzip such a file.
It will be compressed nearly to nothing.
Also rotation will only keep a backlog of "n" (configurable) old rotated ones.
If it gets that large in one day, something else is amiss. That's the idea, that there are some unknown cases where it grows out of bounds.
These are seperate bugs :)
Ciao, MArcus
The strange thing is that I can't find where to change the loglevel of that file. It grows by about 25M each time it gets written to. The logrotate works perfectly once you add the file to the logrotate scheme. To clean up /var/log a little bit, I changed both zypper.log and zypp-refresh.log to move the compressed log files to the directory /var/log/zypper-old: /var/log/zypper.log { compress dateext notifempty missingok nocreate olddir /var/log/zypper-old maxage 60 rotate 99 size 10M } /var/log/zypp-refresh.log { compress dateext notifempty missingok nocreate olddir /var/log/zypper-old maxage 60 rotate 99 size 10M } Moving the existing old logs really helps /var/log. Keeps it to one screen with ls -al. It wouldn't be bad to add a generic /var/log/old directory to openSuSE 11.2 and have all old logs rotated there. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org