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

Re: [cobalt-users] Log Files



> I have been searching through the archives of this mailing list and on the
> Sun Support Forum but cannot find the answer to what should be a simple
> question.
> 
> The log files on my RAQ4 are getting bigger and bigger, I believe there is a
> file I can tweak which gets them to "rotate" when they reach a certain size.

logrotate handles log rotation. Search the archives for logrotate.
 
> Please can someone let me know where/what this file is.

Type man logrotate at the shell prompt for the manual pages.

You'll find the individual site logrotate configs in /etc/logrotate.d and
/etc/logrotate.onboot. You can also edit /etc/logrotate.conf to set global
settings for all sites.

> Also is there a good Cobalt FAQ page which covers how the log files work and
> how else I can optimise them.

A quick synopsis would be that apache logs everything to a main access log
and then the Cobalt sauce splits them up and puts them into the correct
/home/sites/www.domain.com/logs. The default logrotate settings for virtual
sites rotate the logs depending on the size allocated to each virtual site.

HTH,
j
-- 
http://www.bizmanuals.com