Last Updated: July 05, 2018
·
516
· suzannealdrich

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