问题原文
原帖链接 · J. Chin · CC BY-SA 3.0
Does fail2ban continue to monitor rotated log files?
For example, I have a rule monitoring /var/log/fail2ban.log which is automatically rotated by the system every week (7 days). I want to have a rule that monitors for banned IPs in that log to find repeat offenders that have been banned 5 times in the last 10 days. Is that possible?
已采纳解答
原帖链接 · Mark Wagner · CC BY-SA 3.0
Yes, fail2ban continues to monitor rotated log files. From server/filter.py
439 ##
440 # FileContainer class.
441 #
442 # This class manages a file handler and takes care of log rotation detection.
443 # In order to detect log rotation, the hash (MD5) of the first line of the file
444 # is computed and compared to the previous hash of this line.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
