mirror of https://github.com/fail2ban/fail2ban
- Added "named" date format to date detector. Thanks to Yaroslav Halchenko
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@607 a942ae1a-1317-0410-a47c-b1dcaea8d605_tent/ipv6_via_aInfo
parent
26c54c4538
commit
040822f19f
|
@ -26,6 +26,8 @@ ver. 0.8.1 (2007/??/??) - stable
|
||||||
to Yaroslav Halchenko
|
to Yaroslav Halchenko
|
||||||
- Added new action iptables-allports. Thanks to Yaroslav
|
- Added new action iptables-allports. Thanks to Yaroslav
|
||||||
Halchenko
|
Halchenko
|
||||||
|
- Added "named" date format to date detector. Thanks to
|
||||||
|
Yaroslav Halchenko
|
||||||
|
|
||||||
ver. 0.8.0 (2007/05/03) - stable
|
ver. 0.8.0 (2007/05/03) - stable
|
||||||
----------
|
----------
|
||||||
|
|
|
@ -80,6 +80,12 @@ class DateDetector:
|
||||||
template.setRegex("\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}")
|
template.setRegex("\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}")
|
||||||
template.setPattern("%Y-%m-%d %H:%M:%S")
|
template.setPattern("%Y-%m-%d %H:%M:%S")
|
||||||
self.__templates.append(template)
|
self.__templates.append(template)
|
||||||
|
# named 26-Jul-2007 15:20:52.252
|
||||||
|
template = DateStrptime()
|
||||||
|
template.setName("Day-Month-Year Hour:Minute:Second[.Millisecond]")
|
||||||
|
template.setRegex("\d{2}-\S{3}-\d{4} \d{2}:\d{2}:\d{2}")
|
||||||
|
template.setPattern("%d-%b-%Y %H:%M:%S")
|
||||||
|
self.__templates.append(template)
|
||||||
# TAI64N
|
# TAI64N
|
||||||
template = DateTai64n()
|
template = DateTai64n()
|
||||||
template.setName("TAI64N")
|
template.setName("TAI64N")
|
||||||
|
|
Loading…
Reference in New Issue