On 10/9/2020 6:56 AM, J. Smith wrote: > > Is there a way to limit the log listings in the email notifications to > the last “n” number of entries in the log? The > “sendmail-whois-lines.conf” file uses “grep –m” to limit the number of > entries but it does so starting from the beginning of the log, As a > result you may receive lines from a past brute force attack and not > the current lines that created the present ban. >
Can you use tail? i.e. grep -m <regex> | tail -n <# of returns> -- Dan Egli On my Test server
OpenPGP_0xF8A7B3F2AAB08F9D.asc
Description: application/pgp-keys
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Fail2ban-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fail2ban-users
