From e064ebba456f985989fc0b4b71f2b982bcc1c15f Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Tue, 12 Aug 2008 20:59:17 +0000 Subject: [PATCH] - Added date pattern for Hour:Minute:Second. Thanks to Andreas Itzchak Rehberg. git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@709 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- server/datedetector.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/datedetector.py b/server/datedetector.py index 794b385aa..580c99e8e 100644 --- a/server/datedetector.py +++ b/server/datedetector.py @@ -101,6 +101,12 @@ class DateDetector: 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()