[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: Logging Apache Monthly
----- Original Message -----
From: Ambar Roy <ambarroy@xxxxxxxxx>
Sent: Tuesday, March 06, 2001 4:19 PM
Subject: Re: [linux-delhi] Logging Apache Monthly
> > I currently have my Web-Server logging all logs to access_log files, I
> > one file per VHost. What I want is somehow to make it so that each
> > has a new access_log file. It is possible I've seen it elsewhere,
> > know how?
> Use logrotate. It comes standard with red hat linux (i don't know abt the
> other distros)
Its rotatelog btw ! ;o)
in red hat at /usr/sbin/rotatelog
add the following line :
TransferLog "|roratelog /home/apache/logs 2592000
please remember to create the above dir.
Your logs will be rotated every 2592000 seconds...or 30 days.