Browse Source

- 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
commit
e064ebba45
  1. 6
      server/datedetector.py

6
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()

Loading…
Cancel
Save