mysar-ng
====
MySQL Squid Access Report (new generation) —→ Clone off http://sourceforge.net/projects/mysar/
Apache
Mysql
GCC
cd /opt ; git clone https://github.com/coffnix/mysar-ng.git
mv /opt/mysar-ng/mysar /srv/www/htdocs/
cp /srv/www/htdocs/mysar/etc/mysar.apache /etc/apache2/vhosts.d/mysar.conf
Alias /mysar /srv/www/htdocs/mysar/www
<Directory "/srv/www/htdocs/mysar/www">
Options Indexes MultiViews
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all</code>
<code></Directory>
/etc/init.d/apache2 restart
mysql> create database mysar;
mysql> grant all privileges on mysar.* to mysar@'localhost' identified by 'mysar123';
mysql> flush privileges;
cd /srv/www/htdocs/mysar/bin/mysar-binary-importer/ ; make clean && make && make install
* * * * * root /usr/bin/mysar > /srv/www/htdocs/mysar/log/mysar-importer.log 2>&1
01 00 * * * root /srv/www/htdocs/mysar/bin/mysar-rotate-diario.sh
acl manager proto cache_object
acl localhost src 127.0.0.1/32
log_access deny manager
http_access allow manager localhost
For more infos, please RTFM :D
Squid old: http://www.squid-cache.org/Doc/config/log_access/
Squid new: http://www.squid-cache.org/Doc/config/access_log/