[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] How to disable apache logfiles
- Subject: Re: [cobalt-users] How to disable apache logfiles
- From: cobalt@xxxxxxxxxxxxx
- Date: Wed Jul 31 03:02:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On 30 Jul 2002 at 17:28, Andras Kende wrote:
> Hello All,
>
> I would like to disable apache logging due to huge logfile size..
Are your logfiles rotated daily ?
If not you could use Cronolog to create daily log files:
http://www.ford-mason.co.uk/resources/cronolog/
Its an easy install, just the usual
tar -zxvf cronolog-x-x-x.tar.gz
cd cronolog-x-x-x
./configure
make
make install
Once installed you just modify / change some lines in the httpd.conf file, for
example, here is the entry for one of my virtual sites (may wrap - should be two
seperate lines) :
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
CustomLog "|/usr/local/sbin/cronolog /home/sites/site3/logs/%Y%m%daccess.log"
combined
I have also tried using this in conjunction with gzip, but could never get it to
compress files on the fly, has anyone else ever got that to work ?
Also, as an aside I have a custom script to encrypt log files with gpg every night
(which also compresses them ) if you're interested.
Ian
--