views:

132

answers:

0

how do you configure rotation of syslog log files on ubuntu?

in my /etc/syslog.conf, i have this line:

local1.* /var/log/log.txt

over time, the following backup files have appeared:

/var/log/log.txt.0.gz /var/log/log.txt.1.gz

how do i configure how often these files get generated, and how to clean them out?