|
|
@ -438,10 +438,10 @@ class Fail2banRegex(object): |
|
|
|
if self._filter.dateDetector is not None: |
|
|
|
if self._filter.dateDetector is not None: |
|
|
|
print "\nDate template hits:" |
|
|
|
print "\nDate template hits:" |
|
|
|
out = [] |
|
|
|
out = [] |
|
|
|
for template in self._filter.dateDetector.getTemplates(): |
|
|
|
for template in self._filter.dateDetector.templates: |
|
|
|
if self._verbose or template.getHits(): |
|
|
|
if self._verbose or template.hits: |
|
|
|
out.append("[%d] %s" % ( |
|
|
|
out.append("[%d] %s" % ( |
|
|
|
template.getHits(), template.getName())) |
|
|
|
template.hits, template.name)) |
|
|
|
pprint_list(out, "[# of hits] date format") |
|
|
|
pprint_list(out, "[# of hits] date format") |
|
|
|
|
|
|
|
|
|
|
|
print "\nLines: %s" % self._line_stats |
|
|
|
print "\nLines: %s" % self._line_stats |
|
|
|