From: Davide P. <per...@dp...> - 2013-10-28 13:20:59
|
I don't think that log rotations can be the cause since there is no log at all on /var/log/fail2ban.log I don't see any log on that file. I tried with tail -f on that file while an IP is banned and no log is written. Thanks. Il 28/10/2013 12:06, Charles Bradshaw ha scritto: > I think you will find that fail2ban is writing to the previous log file > after log rotation. > > Following a fail2ban restart, I see an empty fail2ban.log after the > first log rotation. Thereafter fail2ban writes to the previous, renamed > file! At least that's what happens on my Fedora 17 install. > > I presume this behaviour is because fail2ban needs to know the IP of > temporary bans and cannot not know the name of the rotated log file. > Because the rotated name is logrotate configuration dependent. > > It is possible to change the log file name with: > # fail2ban-client set logtarget <TARGET> > That could be done by logrotate but, I presume, if there are pending > temporary bans in the old log they would never get un-banned. > > I think that what should happen is that fail2ban rotates its own logs > somehow, perhaps a client option? > > On Sun, 2013-10-27 at 15:57 +0100, per...@dp..._IMAP > wrote: >> Hi, >> my /var/log/fail2ban.log is empty. >> >> I'm sure that fail2ban banned many IPs since I receive emails when it >> bans an IP. >> Is there any reason on why it does not log? >> >> Thanks >> >> ------------------------------------------------------------------------------ >> October Webinars: Code for Performance >> Free Intel webinars can help you accelerate application performance. >> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from >> the latest Intel processors and coprocessors. See abstracts and register > >> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk >> _______________________________________________ >> Fail2ban-users mailing list >> Fai...@li... >> https://lists.sourceforge.net/lists/listinfo/fail2ban-users > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > _______________________________________________ > Fail2ban-users mailing list > Fai...@li... > https://lists.sourceforge.net/lists/listinfo/fail2ban-users |