Parse nginx-access.log for HTTP response codes
$ awk '{print $9}' nginx-access.log | sort | uniq -c | sort -r
8 302
4027 200
30 401
16 404
15 500
139 304
1 307
1 301
Written by Suzanne Aldrich
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#