Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Dan Brown on November 01, 2002, 04:18:22 AM

Title: mod_gzip log file
Post by: Dan Brown on November 01, 2002, 04:18:22 AM
I was just poking around in /var/log on my server (SME 5.1.2 w/ various contribs) this afternoon, and noticed something rather odd.  It seems that most everything is being rotated, except for httpd/mod_gzip.log.  On my machine, this file is 155 MB, and contains entries as far back as 9/13/01.  I've installed the e-smith-mod_gzip-1.3.19a-1es RPM, but I'm not sure who packaged it.

I've tried adding the following to logrotate.conf:

/var/log/httpd/mod_gzip.log {
    weekly
    create
    rotate 4
}

...but I haven't yet seen an effect (probably because the logs haven't rotated yet).  Would this be the way to set it up, or should I do something different?
Title: Re: mod_gzip log file
Post by: JB on November 04, 2002, 01:38:30 AM
Dan,

I can't help you on this, but I looked at my /var/log/flexbackup directory and I have entries in there back to Feburary.  What can yo tell me about logrotate that I could see where my problem lies.

JB
Title: Re: mod_gzip log file
Post by: Dan Brown on November 04, 2002, 02:08:04 AM
Well, adding that section to logrotate.conf seemed to get the mod_gzip.log to rotate correctly--at least, it rotated this morning.  Have to see if it still works next week.
Title: Re: mod_gzip log file
Post by: Dan G. on November 04, 2002, 02:19:39 AM
Yikes!

Mine was over 200 MB...

Thanks for the pointer, Dan!