mirror of https://github.com/fail2ban/fail2ban
Merge pull request #703 from kwirk/journal-match-notice
Add notice message for systemd backend when no journal matchpull/706/head
commit
64866995b7
|
@ -213,6 +213,12 @@ class FilterSystemd(JournalFilter): # pragma: systemd no cover
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
||||||
|
if not self.getJournalMatch():
|
||||||
|
logSys.notice(
|
||||||
|
"Jail started without 'journalmatch' set. "
|
||||||
|
"Jail regexs will be checked against all journal entries, "
|
||||||
|
"which is not advised for performance reasons.")
|
||||||
|
|
||||||
# Seek to now - findtime in journal
|
# Seek to now - findtime in journal
|
||||||
start_time = datetime.datetime.now() - \
|
start_time = datetime.datetime.now() - \
|
||||||
datetime.timedelta(seconds=int(self.getFindTime()))
|
datetime.timedelta(seconds=int(self.getFindTime()))
|
||||||
|
|
Loading…
Reference in New Issue