sorted by cipher, then by count

This commit is contained in:
Oliver Ladner 2013-05-01 17:05:04 +02:00
commit 45923a3284

View file

@ -8,5 +8,4 @@
MIN_MAILS=2
echo -e "Count\tCipher used\tSending domain"
echo "--------------------------------------"
zgrep 'Anonymous TLS connection established from' /var/log/mail.log* | sed -r 's/\[[0-9.]*\]://g' | awk {'print $15,$11'} | sort | uniq -c -i | while read line; do [[ $(grep -oE '^\s*[0-9]+' <<< $line) -gt $MIN_MAILS ]] && echo $line | tr -s ' ' '\t'; done
#fskfjsj
zgrep 'Anonymous TLS connection established from' /var/log/mail.log* | sed -r 's/\[[0-9.]*\]://g' | awk {'print $15,$11'} | sort | uniq -c -i | while read line; do [[ $(grep -oE '^\s*[0-9]+' <<< $line) -gt $MIN_MAILS ]] && echo $line | tr -s ' ' '\t'; done | sort -k 2,2 -k 1,1rn