From a7766d331645226654d5baf92017f5b52d4dc297 Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Sun, 20 Apr 2014 17:59:41 +0100 Subject: [PATCH] DOC: Add notice message for systemd backend when no journal match --- fail2ban/server/filtersystemd.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fail2ban/server/filtersystemd.py b/fail2ban/server/filtersystemd.py index 7ab56039..f2dee8cb 100644 --- a/fail2ban/server/filtersystemd.py +++ b/fail2ban/server/filtersystemd.py @@ -213,6 +213,12 @@ class FilterSystemd(JournalFilter): # pragma: systemd no cover 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 start_time = datetime.datetime.now() - \ datetime.timedelta(seconds=int(self.getFindTime()))