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

[cobalt-users] Re: log rotate - WHEN EXACTLY?



> this is in my /etc/logrotate.d file:
> 
> /home/sites/site1/logs/mail.log {
> missingok
> compress
> size 2M
> }
> 
> /home/sites/site1/logs/ftp.log {
> missingok
> compress
> size 2M
> }
> 
> /home/sites/site1/logs/web.log {
> missingok
> compress
> size 2M
> 
> So, it seems, that he does a log rotate every 2 MB, or what? And when
> exactly gets this file compressed? How many compressed files does he
> create? Always one compressed (old) and one uncompressed actual? I
> don't have any idea right now... :-(
> 
> The "funny" thing is, that 2 MB is for *EVERY* site, no matter how
> much space I gave it...
> 
> Thanks,
> Florian


Try "man logrotate" without the quotes...

It will tell you everything you need to know about logrotate.

I don't think that changing the space allocated to each site effects
logrotate. The 2M size attribute is just a default setting I believe. If you
don't want it to be 2M just change it with vi. That's what I did.