summaryrefslogtreecommitdiff
path: root/files/fail2ban-logrotate
blob: 8d94a8b356bc112409f1703c00da1077d71dbde2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# Gentoo:
# http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/fail2ban/files/fail2ban-logrotate?view=markup
#
# Debian:
# https://github.com/fail2ban/fail2ban/blob/debian/debian/fail2ban.logrotate

/var/log/fail2ban.log {
    rotate 7
    missingok
    notifempty
    compress
    postrotate
      /usr/bin/fail2ban-client flushlogs  1>/dev/null || true
    endscript
}