mirror of https://github.com/fail2ban/fail2ban
BF: Fixing a name for MySQL date pattern which misplaced Year (should not effect functionality) Closes #312
parent
547c123cfb
commit
c0456fd835
|
@ -151,7 +151,7 @@ class DateDetector:
|
|||
self._appendTemplate(template)
|
||||
# MySQL: 130322 11:46:11
|
||||
template = DateStrptime()
|
||||
template.setName("MonthDayYear Hour:Minute:Second")
|
||||
template.setName("YearMonthDay Hour:Minute:Second")
|
||||
template.setRegex("^\d{2}\d{2}\d{2} +\d{1,2}:\d{2}:\d{2}")
|
||||
template.setPattern("%y%m%d %H:%M:%S")
|
||||
self._appendTemplate(template)
|
||||
|
|
Loading…
Reference in New Issue