local lib = import '_lib.jsonnet'; { streams: { ssh: { cmd: ['journalctl', '-fn0', '-u', 'sshd.service'], filters: { failedlogin: lib.filter_default + { regex: [ @'authentication failure;.*rhost=', @'Connection reset by authenticating user .* ', @'Failed password for .* from ', ], retry: 3, retryperiod: '6h', actions: lib.banFor('48h'), }, }, }, }, }