# see "man logrotate" for details # rotate log files daily daily # use the syslog group by default, since this is the owning group # of /var/log/syslog. su root syslog # keep 7 days worth of backlogs rotate 7 # create new (empty) log files after rotating old ones create # use date as a suffix of the rotated file dateext # compressed log files compress # use xz to compress compresscmd /usr/bin/xz uncompresscmd /usr/bin/unxz compressext .xz # packages drop log rotation information into this directory include /etc/logrotate.d # system-specific logs may be also be configured here.