mirror of https://github.com/fail2ban/fail2ban
- 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
parent
b26f9ca97a
commit
e064ebba45
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue