From fbd4bfc595f995d924ef108d335fb0ac67550514 Mon Sep 17 00:00:00 2001 From: sebres Date: Tue, 10 Sep 2019 19:46:44 +0200 Subject: [PATCH] extend murmur test cases to cover systemd journal log-format (gh-2520, note we don't use any time-stamp as systemd-backend does not expect it) --- fail2ban/tests/files/logs/murmur | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fail2ban/tests/files/logs/murmur b/fail2ban/tests/files/logs/murmur index bc18b7ea..ee15a9c7 100644 --- a/fail2ban/tests/files/logs/murmur +++ b/fail2ban/tests/files/logs/murmur @@ -3,3 +3,8 @@ # failJSON: { "time": "2015-11-29T17:18:20", "match": true , "host": "192.168.1.2" } 2015-11-29 17:18:20.962 1 => <8:testUsernameTwo(-1)> Rejected connection from 192.168.1.2:29761: Wrong certificate or password for existing user + +# filterOptions: {"logtype": "journal"} + +# failJSON: { "match": true , "host": "192.0.2.1", "desc": "systemd-journal entry" } +Test murmurd[2064]: 2019-09-08 13:00:05.615 1 => <10:Test(-1)> Rejected connection from 192.0.2.1:31752: Invalid server password