LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   how to make the zipper log smaller automatically? (https://www.linuxquestions.org/questions/suse-opensuse-60/how-to-make-the-zipper-log-smaller-automatically-722632/)

gingis55 04-30-2009 01:47 AM

how to make the zipper log smaller automatically?
 
how to make the zipper log smaller automatically?

colucix 04-30-2009 02:32 AM

It should already been rotated automatically. In OpenSuse there is a rule in /etc/logrotate.d/zypper.lr. On my system it is:
Code:

$ cat /etc/logrotate.d/zypper.lr
/var/log/zypper.log {
    compress
    dateext
    notifempty
    missingok
    nocreate

    maxage 60
    rotate 99
    size 10M
}

This should rotate zypper.log if it is older than 60 days or bigger than 10M. You can also set the rotate flag to 0 if you want remove old files instead. Eventually reduce the max size or the day count if you want to rotate it more frequently.


All times are GMT -5. The time now is 07:03 AM.