How to get how many of each type of request your site is getting from access.log

awk '{print $9}' access.log | sort | uniq -c | sort -bg

Response example:

...
      1 408
      1 413
      1 curl
      2 "
      4 502
     15 166
     24 "-"
     40 400
     63 403
    107 500
    608 206
   1413 499
   1425 504
   7012 404
  12687 503
  19895 302
  32108 301
  52400 304
1928523 200
 38   3 mon  
Popular