# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 52 weeks worth of backlogs
rotate 52

# compress logfiles with bzip2
compress
compresscmd /usr/bin/zstd
uncompresscmd /usr/bin/unzstd
compressext .zst

# do not rotate empty logs
notifempty

# do not complain about missing logfiles
missingok

# only rotate if log is bigger then 1mB
size 1M

# all packages definition go here
include /etc/logrotate.d

# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root root
    rotate 1
}

/var/log/btmp {
    monthly
    create 0664 root root
    rotate 1
}
