Red Hat Bugzilla – Bug 52572
psacct's logrotate cloggs up /var/log
Last modified: 2008-05-01 11:38:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.7-2smp i686; Nav)
Description of problem:
/etc/logrotate.d/psacct states the following:
Note that /var/log/pacct file is a fast growing file
This really should be rotated on a daily basis and
compressed. Keep 'em for a month, or longer, but do so
in a compressed form. 1 week on a lightly used system
will create a pacct log file close to 200 mb.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.install psacct rpm
2.leave system run for a week (that's 1 "logrotate week")
3. examine size of pacct file (if /var has not filled up in th e meantime!
Actual Results: /var fills up in less than a week
Expected Results: /var should not need several gigs of storage space
(which it will for 4 to 5 uncompressed monthly paccts).
Changed to daily rotation with 31 days worth of logs kept.
psacct-6.3.2-7 will be in final release.