SquidAnalyzer – Log Analyse für Squid3

Nutzt man Squid als Proxy, möchte man eventuell eine Auswertung der Internetnutzung starten.

Dazu eignet sich Squidanalyzer, welcher die erzeugten Logfiles des Proxys visuell aufbereitet.

Installation

Download des Pakets:
wget http://downloads.sourceforge.net/project/squid-report/squid-report/6.5/squidanalyzer-6.5.tar.gz?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fsquid-report%2F&ts=1466775184&use_mirror=freefr
mv squidanalyzer-6.5.tar.gz?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fsquid-report%2F squidanalyzer-6.5.tar.gz

Entpacken:
tar xfvz squidanalyzer-6.5.tar.gz
Kompilieren
perl Makefile.PL
make && make install

Anpassen der jeweiligen Apache Konfiguration (/etc/apache2/sites-enabled/squidanalyzer.conf)

ServerAdmin braun@xxx.de
DocumentRoot "/var/www"
Alias /squidreport /var/www/squidanalyzer
<Directory "/var/www/squidanalyzer">
Options +FollowSymLinks +FollowSymLinks +MultiViews
AllowOverride All

ServerSignature Off
LogLevel info
ErrorLog /var/log/apache2/squidanalyzer-error.log
CustomLog /var/log/apache2/squidanalyzer-access.log combined

Anpassen der Squid Reports
nano /etc/squidanalyzer/squidanalyzer.conf
Einmaliges Ausführen der Loganalyse:
/usr/bin/squid-analyzer > /dev/null 2>&1
Analyse als Cronjob hinterlegen
crontab -e
0 2 * * * /usr/local/bin/squid-analyzer > /dev/null 2>&1

SquidAnalyzer 6.5 Report

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s