Martin Gregorie wrote: > On Mon, 2008-03-03 at 17:54, Agnello George wrote: > > hi > > > > I have set up a spamassissin server . I need to rotate the logs in > > the /var/log/spamd.log file . I added the following directives in > > the /etc/logrotate.conf > > > > # system-specific logs may be also be configured here. # added by > > agnello 4 march 08 /var/log/spamd.log { > > weekly > > compress > > rotate 4 > > } > > > > Well i jsut want to verify what "rotate 4" really means --- > > according to the man pages it says "The number of times to rotate a > > logfile before removing it." > > > Sounds pretty straight forward to me - you get the log set: > log > log.1 > log.2 > log.3 > log.4 > > kept with each log moving down the chain before it gets removed. > > > Also how do i check if these logs are actually going to be > > compressed and rotated . > > > Dunno about compression. I don't use it, but visiting /var/log and > looking at file sizes and content after a week or two should show if > its doing what you expect. Or not. Personally, I think rotation on > logfile size is more useful than on time, but ymmv.
The compression seems pretty obvious to me: maillog maillog.1.gz maillog.2.gz maillog.3.gz maillog.4.gz -- Bowie