Analyse Access Log with awk for most common ip addresses

Some cat with awk and then sort to find out what ips are most common in your apache access.log file. Remember that all ips are include here. Bots, crawlers, clients…

 bash | 
 
 copy code |
?

1
cat /path/to/log | awk '{print $3}' | sort | uniq -c | sort -rn | head -20