统计nginx日志文件前10ip地址和前10url地址
# 统计前10 IP
awk '{ print $1}' access.log | sort | uniq -c | sort -nr | head -n 10
# 访问前10的地址
awk '{ print $6}' access.log | sort | uniq -c | sort -nr | head -n 10
# 统计前10 IP
awk '{ print $1}' access.log | sort | uniq -c | sort -nr | head -n 10
# 访问前10的地址
awk '{ print $6}' access.log | sort | uniq -c | sort -nr | head -n 10