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

[cobalt-users] RE: [cobalt-developers] Log file expiration



> > I've got one question: does anybody know how often log 
> files for every
> > single site expire?
> > 
> > I looked at:
> > /home/sites/siteNUM/log/web.log (I hope the path is 
> correct!!) and i've
> > seen that the log begins on the 28th of Sep. and ends today .... The
> > problem is: that site has been created ON Sep 28!
> > 
> > Don't they ever expire, or rotate???!!??
> > 
> > Or do they rotate when they're bigger that a certain amount of Kb?
> 
> 
> I believe they rotate when they reach 10% of the allocated 
> space for the
> site. (10mb site = 1Mb log)
> 
> But I'm sure someone will correct me if I'm wrong!

You're right :-)

If you cat one of the siteXXX files in:
/etc/logrotate.d

You can see that the files are only compressed once they reach a certain
size and not on a chronological basis. If you want this, try:

man logrotate

for more information, and look in some of the other non-siteXXX files in
logrotate for ideas on how it works.

Regards,
Jonathan Michaelson

Way to the Web Ltd
Commercial CGI Scripting, Web Hosting
http://www.waytotheweb.com