syslog: on ubuntu, how to configure rotation and gzip'ing of syslog files?

Posted by Heinrich Schmetterling on Stack Overflow See other posts from Stack Overflow or by Heinrich Schmetterling
Published on 2010-05-01T05:28:04Z Indexed on 2010/05/01 5:37 UTC
Read the original article Hit count: 371

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about unix

Related posts about syslog