nginx api 慢查询:
tac /var/log/nginx/blog.qianrushi.org-access.log |awk -F'(" "|")' '{printf("%s %s %s\n",$20,$2,$1)}' |head -n 1000 |sort -nr |head -n 20
nginx api 慢查询:
tac /var/log/nginx/blog.qianrushi.org-access.log |awk -F'(" "|")' '{printf("%s %s %s\n",$20,$2,$1)}' |head -n 1000 |sort -nr |head -n 20