This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# us awk to show the unique source-ips from access logs | |
awk '{ print $1 }' /var/log/*access*log | sort -n | uniq -c | sort -nr | head -20 | |
# to use that on several compressed files: | |
gzip -dc /var/log/*access*.gz | awk '{ print $1 }' | sort -n | uniq -c | sort -nr | |
# to show only the most-occuring addresses: | |
gzip -dc /var/log/*access*.gz | awk '{ print $1 }' | sort -n | uniq -c | sort -nr | head -20 |
NewerOlder