Quick http code counts from all nginx servers
I use the following to check http error codes in the current nginx production logs.
ansible webservers -m shell -a "awk '{print \$9}' /var/log/nginx/access.log|sort |uniq -c |sort -k1,1nr 2>/dev/null"
Written by Brian Coca
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Nginx
Authors
reiaguilera
279.8K

jamesdullaghan
90.26K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#