http://dasunhegoda.com/apache-access-logs-to-mysql-database/953/
the tough part is getting mod_log_sql_mysqlhttp://www.outoforder.cc/projects/httpd/mod_log_sql/
http://git.outoforder.cc/httpd/mod_log_sql/
https://colekcolek.com/2012/03/12/save-apache-access-log-mysql-database-libaapche2-mod-log-sql-debian-squeeze/