[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Monthly web logs (logrotate)
- Subject: Re: [cobalt-users] Monthly web logs (logrotate)
- From: Jay Summers <jay@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue Mar 20 03:31:04 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> How would I go about keeping a months worth of logs for one particular site?
man logrotate
The config files are in the /etc/logrotate.d and /etc/logrotate.onboot
directories. If you look inside there you'll see them labeled by site
number, e.g. site1, site2, site3, etc. This is where you'll want to change
the site configs. Remember though that changes made by hand get overridden
if you make changes to the site through the GUI.
To rotate the logs monthly you'd probably want to edit the site file similar
to this:
/home/sites/site51/logs/access {
monthly
compress
}
P.S. Be sure to edit both of the site files in /etc/logrotate.d and
/etc/logrotate.onboot.
cya,
Jay