mirror of https://github.com/fail2ban/fail2ban
fail2ban-regex: bug fixed, if running over systemd-journal and `journalmatch` missing in filter.
parent
98f4d70371
commit
3e15343343
|
@ -614,7 +614,7 @@ class Fail2banRegex(object):
|
||||||
self.setDatePattern(None)
|
self.setDatePattern(None)
|
||||||
if journalmatch:
|
if journalmatch:
|
||||||
flt.addJournalMatch(journalmatch)
|
flt.addJournalMatch(journalmatch)
|
||||||
output( "Use journal match : %s" % " ".join(journalmatch) )
|
output( "Use journal match : %s" % " ".join(journalmatch) )
|
||||||
test_lines = journal_lines_gen(flt, myjournal)
|
test_lines = journal_lines_gen(flt, myjournal)
|
||||||
else:
|
else:
|
||||||
# if single line parsing (without buffering)
|
# if single line parsing (without buffering)
|
||||||
|
|
Loading…
Reference in New Issue