Parsing Apache Logs
cat access.log | awk ‘{print $1 ” ” $4}’ Below are some simple awk/sed/etc command line scripts to parse apache logs and get quick statistics Unique visitors per day Where access.log is your combined log file with typical format as below: access.log 69.175.xxx.yyy – – [13/Jul/2013:06:28:31 -0500] “GET /some/web/folder/somewebpage2 HTTP/1.0” 404 4212 “http://somesubdomain.example.org/some/web/folder/some_web_page1” “Mozilla/5.0 (Windows […]
Parsing Apache Logs Read More »