Calamaris Logfile Analyzer

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Allgemein

  • Tool zum statistischen Auswerten von Proxy Logfiles.
  • Unterstützt Squid, NetCache, Inktomi Traffic Server, Oops! proxy server, Novell Internet Caching System, Compaq Tasksmart, Cisco Content Engines oder Netscape/iPlanet/SunONE Web Proxy Server.
  • Die Auswertung ist unter Umständen datenschutzrelevant und es kann erforderlich sein, dass die betroffenen Personen informiert werden.

Installation

  • apt-get install calamaris
  • apt-get install libgd-graph-perl #fuer graphische Auswertungen

Anwendung

  • Kommandozeilenparameter und/oder Konfiguration in Datei /etc/calamaris/calamaris.conf

Standard Reports - Ausgabe in Datei

  • cat /var/log/squid/access.log | calamaris --all-useful-reports --output-path /path/to/directory/ --output-file filename.txt

Senden Auswertungen an root

  • cat /var/log/squid/access.log | calamaris --all-useful-reports --hostname "examplehost" --output-format mail | mail root

Auswertung als html mit Graphik

  • cat /var/log/squid/access.log | calamaris --all-useful-reports --hostname "examplehost" --output-format html,graph --image-type png --output-path /path/to/directory/