scanerrlog - Generate summaries/reports from Apache error logs
scanerrlog offers the possibility to generate a summary or report about Apache errors and sort them depending on how frequent they are.
To install it (for Ubuntu users):
sudo apt-get install scanerrlog
or use Synaptic and search for scanerrlog.
It's written in Python, and it is very easy to use it. (type 'man scanerrlog' in a terminal to see the manual page)
I tested it with Apache2 log files using the following command:
scanerrlog -f text -o /tmp/log.txt /var/log/apache2/*.log
- -f : format (text, pdf, html, xml)
- -o : output file
- args : log files
And it produces the following text file (I stripped personal info from it):
ScanErrLog v2.01 Report
Wed Jun 17 14:57:29 2009
84 => File does not exist
29 => ...www/robots.txt
11 => ...www/favicon.ico
8 => ...www/fastenv
6 => ...www/robots.txt
2 => ...www/phpMyAdmin
2 => ...www/xadmin
2 => ...www/pxa.php
2 => ...www/mysql
1 => ...www/404.php
1 => ...www/myadmin
1 => ...www/sql
1 => ...www/PHPMyAdmin
1 => ...www/databaze
1 => ...www/mydb
1 => ...www/MyAdmin
1 => ...www/db
1 => ...www/phpmyadmin
1 => ...www/noexist.php
1 => ...www/dbadmin
1 => ...www/global
1 => ...www/robots.txt
1 => ...www/phpadmin
1 => ...www/favicon.ico, referer: http://.../...
1 => ...www/s/soundproperties.png
1 => ...www/adm
1 => ...www/mysql_admin
1 => ...www/mysqladmin
1 => ...www/database
1 => ...www/PHPMYADMIN
1 => ...www/myadmin
5 => (13)Permission denied
4 => file permissions deny server access: ...www/favicon.ico
1 => file permissions deny server access: ...www/st.html
2 => Apache/2.2.11 (Ubuntu) configured -- resuming normal operations
1 => caught SIGTERM, shutting down
Skipped 393 unwanted lines (81%).
485 Lines total.The html output is also very neat, you can try it with something like:
scanerrlog -f html -o /tmp/log.html /var/log/apache2/*.log
























