/usr/lib/python3/dist-packages/fail2ban/tests/files/logs
NameSizeModeActions
bsd/-0755rm
3proxy5750644editdlrm
apache-auth128050644editdlrm
apache-badbots6880644editdlrm
apache-botsearch37500644editdlrm
apache-fakegooglebot4800644editdlrm
apache-modsecurity26550644editdlrm
apache-nohome4060644editdlrm
apache-noscript27020644editdlrm
apache-overflows24760644editdlrm
apache-pass2730644editdlrm
apache-shellshock4990644editdlrm
assp52090644editdlrm
asterisk136830644editdlrm
bitwarden7410644editdlrm
centreon2520644editdlrm
counter-strike3990644editdlrm
courier-auth10700644editdlrm
courier-smtp17350644editdlrm
cyrus-imap24550644editdlrm
directadmin8350644editdlrm
domino-smtp12950644editdlrm
dovecot110170644editdlrm
dropbear13290644editdlrm
drupal-auth7880644editdlrm
ejabberd-auth14900644editdlrm
exim101450644editdlrm
exim-spam34620644editdlrm
freeswitch23900644editdlrm
froxlor-auth3540644editdlrm
gitlab3920644editdlrm
grafana5640644editdlrm
groupoffice3090644editdlrm
gssftpd1760644editdlrm
guacamole10160644editdlrm
haproxy-http-auth9430644editdlrm
horde5670644editdlrm
kerio33040644editdlrm
lighttpd-auth7880644editdlrm
mongodb-auth20530644editdlrm
monit24110644editdlrm
murmur7020644editdlrm
mysqld-auth36960644editdlrm
nagios2260644editdlrm
named-refused26050644editdlrm
nginx-botsearch27050644editdlrm
nginx-http-auth17270644editdlrm
nginx-limit-req11710644editdlrm
nsd3890644editdlrm
openhab6920644editdlrm
openwebmail6150644editdlrm
oracleims18430644editdlrm
pam-generic24290644editdlrm
perdition5890644editdlrm
php-url-fopen3140644editdlrm
phpmyadmin-syslog1770644editdlrm
portsentry3410644editdlrm
postfix133000644editdlrm
proftpd29460644editdlrm
pure-ftpd1950644editdlrm
qmail8300644editdlrm
recidive14090644editdlrm
roundcube-auth55550644editdlrm
scanlogd8540644editdlrm
screensharingd11180644editdlrm
selinux-ssh34360644editdlrm
sendmail-auth21910644editdlrm
sendmail-reject104850644editdlrm
sieve5350644editdlrm
slapd11460644editdlrm
softethervpn6480644editdlrm
sogo-auth35520644editdlrm
solid-pop3d16260644editdlrm
squid8950644editdlrm
squirrelmail1970644editdlrm
sshd329030644editdlrm
sshd-journal243960644editdlrm
stunnel2670644editdlrm
suhosin12880644editdlrm
tine205200644editdlrm
traefik-auth18530644editdlrm
uwimap-auth15450644editdlrm
vsftpd11220644editdlrm
webmin-auth6400644editdlrm
wuftpd6310644editdlrm
xinetd-fail3310644editdlrm
znc-adminlog7080644editdlrm
zoneminder2300644editdlrm
zzz-generic-example42450644editdlrm
zzz-sshd-obsolete-multiline360644editdlrm
Edit: /usr/lib/python3/dist-packages/fail2ban/tests/files/logs/zzz-generic-example (4245B)
# -- _daemon with __pid_re, without __hostname -- # failJSON: { "time": "2005-06-21T16:47:46", "match": true , "host": "192.0.2.1" } Jun 21 16:47:46 machine test-demo[13709]: F2B: failure from 192.0.2.1 # -- _daemon with __pid_re -- # failJSON: { "time": "2005-06-21T16:47:48", "match": true , "host": "192.0.2.1" } Jun 21 16:47:48 test-demo[13709]: F2B: failure from 192.0.2.1 # -- __kernel_prefix -- # failJSON: { "time": "2005-06-21T16:47:50", "match": true , "host": "192.0.2.2" } Jun 21 16:47:50 machine kernel: [ 970.699396] F2B: failure from 192.0.2.2 # -- _daemon_re with and without __pid_re -- # failJSON: { "time": "2005-06-21T16:47:52", "match": true , "host": "192.0.2.3" } Jun 21 16:47:52 machine [test-demo] F2B: failure from 192.0.2.3 # failJSON: { "time": "2005-06-21T16:47:53", "match": true , "host": "192.0.2.3" } Jun 21 16:47:53 machine [test-demo][13709] F2B: failure from 192.0.2.3 # failJSON: { "time": "2005-06-21T16:50:00", "match": true , "host": "192.0.2.3" } Jun 21 16:50:00 machine test-demo(pam_unix) F2B: failure from 192.0.2.3 # failJSON: { "time": "2005-06-21T16:50:02", "match": true , "host": "192.0.2.3" } Jun 21 16:50:02 machine test-demo(pam_unix)[13709] F2B: failure from 192.0.2.3 # -- all common definitions together (bsdverbose hostname kernel_prefix vserver tag daemon_id space) -- # failJSON: { "time": "2005-06-21T16:55:01", "match": true , "host": "192.0.2.3" } Jun 21 16:55:01 machine kernel: [ 970.699396] @vserver_demo test-demo(pam_unix)[13709] [ID 255 test] F2B: failure from 192.0.2.3 # -- the same as above with additional spaces around -- # failJSON: { "time": "2005-06-21T16:55:02", "match": true , "host": "192.0.2.3" } Jun 21 16:55:02 machine kernel: [ 970.699396] @vserver_demo test-demo(pam_unix)[13709] [ID 255 test] F2B: failure from 192.0.2.3 # -- the same as above with brackets as date ambit -- # failJSON: { "time": "2005-06-21T16:55:03", "match": true , "host": "192.0.2.3" } [Jun 21 16:55:03] machine kernel: [ 970.699396] @vserver_demo test-demo(pam_unix)[13709] [ID 255 test] F2B: failure from 192.0.2.3 # -- wrong time direct in journal-line (used last known date or now, but null because no checkFindTime in samples test factory): # failJSON: { "time": null, "match": true , "host": "192.0.2.1" } 0000-12-30 00:00:00 server test-demo[47831]: F2B: failure from 192.0.2.1 # -- wrong time after newline in message (plist without escaped newlines): # failJSON: { "match": false } Jun 22 20:37:04 server test-demo[402]: writeToStorage plist={ # failJSON: { "match": false } absentCircleWithNoReason = 0; # failJSON: { "match": false } applicationDate = "0000-12-30 00:00:00 +0000"; # failJSON: { "match": false } } # -- wrong time direct in journal-line (used last known date, but null because no checkFindTime in samples test factory): # failJSON: { "time": null, "match": true , "host": "192.0.2.2" } 0000-12-30 00:00:00 server test-demo[47831]: F2B: failure from 192.0.2.2 # -- test no zone and UTC/GMT named zone "2005-06-21T14:55:10 UTC" == "2005-06-21T16:55:10 CEST" (diff +2h in CEST): # failJSON: { "time": "2005-06-21T16:55:09", "match": true , "host": "192.0.2.09" } 2005-06-21 16:55:09 machine test-demo(pam_unix)[13709] F2B: error from 192.0.2.09 # failJSON: { "time": "2005-06-21T16:55:10", "match": true , "host": "192.0.2.10" } 2005-06-21 14:55:10 UTC machine test-demo(pam_unix)[13709] F2B: error from 192.0.2.10 # failJSON: { "time": "2005-06-21T16:55:11", "match": true , "host": "192.0.2.11" } 2005-06-21 14:55:11 GMT machine test-demo(pam_unix)[13709] F2B: error from 192.0.2.11 # failJSON: { "time": "2005-06-21T16:56:02", "match": true , "host": "192.0.2.250" } [Jun 21 16:56:02] machine test-demo(pam_unix)[13709] F2B: error from 192.0.2.250 # failJSON: { "match": false, "desc": "test 1st ignoreregex" } [Jun 21 16:56:03] machine test-demo(pam_unix)[13709] F2B: error from 192.0.2.251 # failJSON: { "match": false, "desc": "test 2nd ignoreregex" } [Jun 21 16:56:04] machine test-demo(pam_unix)[13709] F2B: error from 192.0.2.252 # failJSON: { "match": false, "desc": "ignore other daemon" } [Jun 21 16:56:04] machine captain-nemo(pam_unix)[55555] F2B: error from 192.0.2.2