From: <los...@us...> - 2008-08-12 20:59:08
|
Revision: 709 http://fail2ban.svn.sourceforge.net/fail2ban/?rev=709&view=rev Author: lostcontrol Date: 2008-08-12 20:59:17 +0000 (Tue, 12 Aug 2008) Log Message: ----------- - Added date pattern for Hour:Minute:Second. Thanks to Andreas Itzchak Rehberg. Modified Paths: -------------- branches/FAIL2BAN-0_8/server/datedetector.py Modified: branches/FAIL2BAN-0_8/server/datedetector.py =================================================================== --- branches/FAIL2BAN-0_8/server/datedetector.py 2008-08-12 20:51:55 UTC (rev 708) +++ branches/FAIL2BAN-0_8/server/datedetector.py 2008-08-12 20:59:17 UTC (rev 709) @@ -101,6 +101,12 @@ template = DateISO8601() template.setName("ISO 8601") self.__templates.append(template) + # Only time information in the log + template = DateStrptime() + template.setName("Hour:Minute:Second") + template.setRegex("^\d{2}:\d{2}:\d{2}") + template.setPattern("%H:%M:%S") + self.__templates.append(template) finally: self.__lock.release() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |