A weeks syslog on my box gzips down to about 30K. I can keep a several
months of logs on a floppy, comfortably.

I'd strongly advise against logrotating daily unless you don't want the
logs. If you don't want the logs, switch them off.

        -----Original Message-----
        From:   Erylon [SMTP:[EMAIL PROTECTED]]
        Sent:   Saturday, January 19, 2002 4:57 PM
        To:     [EMAIL PROTECTED]
        Subject:        Re: [newbie] Log size in Linux

        On Saturday 19 January 2002 01:05, you wrote:
        > I have a question about the log file.
        > I have run my Mandrake Linux for 2 weeks and I found the syslog
and
        > other log files have become larger and larger.
        >
        > Is there any way I can limit the size of these log files and make
it
        > automatically cut the beginning part when it over the size limit?
        >
        > Thank you!
        >
        > Daniel

        My solution has not been to place a limit on the log files, but to
change the 
        time that the system uses to rotate (and delete them).

        As root:

        Go the your /etc/logrotate.conf

        Replace "weekly" with "daily".
        Replace "rotate 4" with "rotate 1"
        Replace all incidences of "monthly" with "weekly"

        This will go a long way to preventing the logs from getting out of
hand.  
        Years ago, I discovered that a small hard disk could get filled up
with logs 
        and cause all kinds of problems, so I do this as a matter of course
with 
        every installation.

        hth

        e
         << File: message.footer >> 


**********************************************************************
This email and any files sent with it are intended only for the named 
recipient. If you are not the named recipient please telephone/email  
the sender immediately. You should not disclose the content or        
take/retain/distribute any copies.                                    
**********************************************************************


Norwich Union Life & Pensions Limited
Registered Office 2 Rougier Street
York YO90 1UU
Registered in England Number 3253947
A member of the Norwich Union Marketing Group 
which is regulated by the Personal Investment Authority. 
Member of the Association of British Insurers.

For further Enquires 01603 622200 

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to