Simple Apache log file analyser using Awk

From ben.goodacre.name/tech

Jump to: navigation, search

Show counts of status codes:

awk '{count[$9]++}END{for(j in count) print j," "count[j]" request(s)"}' access.log

You may need to be change the column number - $9 - depending on your log file format.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox