File fail2ban.logrotate of Package fail2ban
/var/log/fail2ban.log {
compress
dateext
maxage 365
rotate 99
size=+4096k
notifempty
missingok
create 644 root root
postrotate
fail2ban-client flushlogs 1>/dev/null || true
endscript
}