[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Monthly web logs (logrotate)



> 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