Visits to the IP address of the top 10: cat access. Log | the cut – f1 – “” d | sort | uniq -c | sort – 1 – n – k r | head – 10 page views in the top 10 url: Cat access. Log | “” cut – f4 – d | sort | uniq -c | sort – 1 – n – k r | head – look at the most time consuming page 10: Cat access. Log | sort – 2 – n – k r | head – 10 statistical proportion: 404 page \

export total_line=`wc -l access.log | cut -f1 -d ” “` && export not_found_line=`awk ‘$6==’404′{print $6}’ access.log | wc -l` && expr $not_found_line \* 100 / $total_line

Click to open the link \