fail2ban.filter : INFO Log rotation detected for /var/log/mail.log

Discussion in 'Installation/Configuration' started by dynamind, Jul 17, 2011.

  1. dynamind

    dynamind Member

    Hello,

    in the backend the fail2ban log shows:

    2011-07-17 07:55:51,688 fail2ban.server : INFO Changed logging target to /var/log/fail2ban.log for Fail2ban v0.8.4-SVN
    2011-07-17 07:55:53,674 fail2ban.filter : INFO Log rotation detected for /var/log/syslog
    2011-07-17 07:55:54,502 fail2ban.filter : INFO Log rotation detected for /var/log/mail.log
    2011-07-17 07:55:54,509 fail2ban.filter : INFO Log rotation detected for /var/log/mail.log
    2011-07-17 07:55:54,525 fail2ban.filter : INFO Log rotation detected for /var/log/mail.log
    2011-07-17 07:55:54,525 fail2ban.filter : INFO Log rotation detected for /var/log/mail.log
    2011-07-17 07:55:54,526 fail2ban.filter : INFO Log rotation detected for /var/log/mail.log
    2011-07-17 07:55:54,681 fail2ban.filter : INFO Log rotation detected for /var/log/auth.log
    2011-07-17 07:56:01,688 fail2ban.filter : INFO Log rotation detected for /var/log/auth.log
    2011-07-17 08:00:02,760 fail2ban.filter : INFO Log rotation detected for /var/log/mail.log
    2011-07-17 08:00:02,761 fail2ban.filter : INFO Log rotation detected for /var/log/mail.log
    2011-07-17 08:00:02,778 fail2ban.filter : INFO Log rotation detected for /var/log/mail.log
    2011-07-17 08:00:02,778 fail2ban.filter : INFO Log rotation detected for /var/log/mail.log
    2011-07-17 08:00:02,779 fail2ban.filter : INFO Log rotation detected for /var/log/mail.log

    what does it mean?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    A log file grows without bound unless action is taken and this can cause problems. A solution to this generic problem of log file growth is log rotation. This involves the regular (nightly or weekly, typically) moving of an existing log file to some other file name and starting fresh with an empty log file. After a period the old log files get thrown away.

    See also http://linuxcommand.org/man_pages/logrotate8.html
     

Share This Page