Exim4, grep the log files: Difference between revisions
From Andreida
(Created page with "=== IPs with failed login === List all IPs whit a failed login and give a count of how often they tried (maxed by deleted old log files) zgrep -o 'failed for (\[.*\])' /var/l...") |
(No difference)
|
Revision as of 22:50, 6 June 2023
IPs with failed login
List all IPs whit a failed login and give a count of how often they tried (maxed by deleted old log files)
zgrep -o 'failed for (\[.*\])' /var/log/exim4/rejectlog.* | grep -o '\[.*\]' | sed 's/^.//' | sed 's/.$//' | sort | uniq -c | sort -n