Last Updated: February 25, 2016
·
515
· suzannealdrich

Parse wget.log for HTTP response codes

$ grep -A1 "^HTTP request sent" wget.log | egrep -o "[0-9]{3} [A-Za-z]+(.*)" | sort | uniq -c |     sort -nr
153239 200 OK
 913 404 Not Found
 816 301 Moved Permanently
  68 403 Forbidden
  26 500 Internal Server Error
   3 302 Moved Temporarily
   3 302 Found
   1 307 Temporarily Redirect