/var/log/fail2ban.log {
    daily
    compress
    dateext
    rotate 31
    notifempty
    missingok
    create 644 root root
    postrotate
      fail2ban-client flushlogs  1>/dev/null || true
    endscript
}
