- 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
_tent/ipv6_via_aInfo
Cyril Jaquier 17 years ago
parent b26f9ca97a
commit e064ebba45

@ -101,6 +101,12 @@ class DateDetector:
template = DateISO8601() template = DateISO8601()
template.setName("ISO 8601") template.setName("ISO 8601")
self.__templates.append(template) 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: finally:
self.__lock.release() self.__lock.release()

Loading…
Cancel
Save