[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: Logging Apache Monthly
----- Original Message -----
From: Ambar Roy <ambarroy@xxxxxxxxx>
To: <linux-delhi@xxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, March 06, 2001 4:19 PM
Subject: Re: [linux-delhi] Logging Apache Monthly
> Hi,
> > I currently have my Web-Server logging all logs to access_log files, I
> have
> > one file per VHost. What I want is somehow to make it so that each
month
> > has a new access_log file. It is possible I've seen it elsewhere,
anyone
> > 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
In httpd.conf
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.