Count HTTP status codes in the access log
how many 404 and 500 errors are there | count http status codes in log | analyze response codes access log | status code distribution apache | awk | access-log | status-code | apacheawk '{print $9}' /var/www/vhosts/system/example.com/logs/access_ssl_log | sort | uniq -c | sort -rnCounts all status codes in the log and sorts them by frequency. A high share of 404, 403 or 5xx points to broken links, bots or application errors. Expects the combined log format, where the status code is in column 9.
Note: If text shows up in the output instead of numbers, the log format differs. Look at a single line with head -1 first and adjust the column number.
Also searched as
- how many 404 and 500 errors are there
- count http status codes in log
- analyze response codes access log
- status code distribution apache