summaryrefslogtreecommitdiffstats
path: root/network/fail2ban/fail2ban.logrotate
blob: 4521d28aeb56f5259d0d6f27a817b4690eaf5c55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 5/23/2013 - updated logrotate script based on suggestion by Sebastian Arcus
# and official github documentation.
# 09/25/2014 - updated logrotate script for version 0.9.0
/var/log/fail2ban.log {
    weekly
    rotate 7
    missingok
    nocompress
    postrotate
	/usr/bin/fail2ban-client flushlogs 1>/dev/null || true
    endscript
}