Calculate statistics from your Qmail logfiles using Awstats: Unterschied zwischen den Versionen

Aus crazylinux.de
Zur Navigation springen Zur Suche springen
(init)
 
K (typo)
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 17: Zeile 17:
You can take a look at its output by executing the following command&nbsp;:<br>  
You can take a look at its output by executing the following command&nbsp;:<br>  


<source>/usr/share/doc/awstats/examples/maillogconvert.pl vadmin /var/log/qmail/qmail.log</source>
<source lang="bash">/usr/share/doc/awstats/examples/maillogconvert.pl vadmin /var/log/qmail/qmail.log</source>  


[[Kategorie:Linux]]
 
[[Kategorie:Mail]]
 
[[Kategorie:QMail]]
 
[[Kategorie:WWW]]
 
[[Category:Linux]] [[Category:Mail]] [[Category:QMail]] [[Category:WWW]]

Aktuelle Version vom 3. Februar 2011, 23:41 Uhr

found on http://www.dotdeb.org/2008/10/13/calculate-statistics-from-your-qmail-logfiles-using-awstats/


Awstats is a commonly used program to calculate web statistics from your webserver logfiles. It can detect useragents, referers, unique visitors… But one of its another feature is to build usage reports from your mail server’s logfiles, as seen on this demo.

Here is how to quickly configure Awstats to take profit of your Qmail log files…

First of all, you need to convert your /var/log/qmail/current file to make it readable to Awstats.

cat /var/log/qmail/current |tai64nlocal >/var/log/qmail/qmail.log


Hopefully, a tool is provided with the awstats package : /usr/share/doc/awstats/examples/maillogconvert.pl

You can take a look at its output by executing the following command :

/usr/share/doc/awstats/examples/maillogconvert.pl vadmin /var/log/qmail/qmail.log