PrePflog Reference documentation: Difference between revisions

From voipsupport
Jump to navigation Jump to search
(Created page with "PrePflog Usage Use prepflog.pl -help for the options. Typical usage with pflogsumm prepflog.pl -d yesterday /var/log/mail | pflogsumm Typical usage with awstats In awstat...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
PrePflog Usage
Use prepflog.pl -help for the options.
Use prepflog.pl -help for the options.


Typical usage with pflogsumm
===Typical usage with pflogsumm===


prepflog.pl -d yesterday /var/log/mail | pflogsumm
<pre>prepflog.pl -d yesterday /var/log/mail | pflogsumm</pre>


Typical usage with awstats
===Typical usage with awstats===


In awstats configuration file set:
In awstats configuration file set:


LogFile="/usr/local/bin/prepflog.pl < /var/log/mail | perl /usr/local/awstats/tools/maillogconvert.pl standard |"
<pre>LogFile="/usr/local/bin/prepflog.pl < /var/log/mail | perl /usr/local/awstats/tools/maillogconvert.pl standard |"</pre>
Note for Debian users
 
===Note for Debian users===
 
(courtesy of Corné van Eeden)


(courtesy of Corné van Eeden
)
Debian users: make sure the libdate-calc-perl package is installed.
Debian users: make sure the libdate-calc-perl package is installed.


Usage on debian with default amavis and postfix installation (Tested on Sarge):
Usage on debian with default amavis and postfix installation (Tested on Sarge):
LogFile= "/usr/local/bin/prepflog.pl < /var/log/mail.info | perl /usr/share/doc/awstats/examples/maillogconvert.pl standard |"
 
<pre>LogFile= "/usr/local/bin/prepflog.pl < /var/log/mail.info | perl /usr/share/doc/awstats/examples/maillogconvert.pl standard |"</pre>

Latest revision as of 17:38, 13 June 2016

Use prepflog.pl -help for the options.

Typical usage with pflogsumm

prepflog.pl -d yesterday /var/log/mail | pflogsumm

Typical usage with awstats

In awstats configuration file set:

LogFile="/usr/local/bin/prepflog.pl < /var/log/mail | perl /usr/local/awstats/tools/maillogconvert.pl standard |"

Note for Debian users

(courtesy of Corné van Eeden)

Debian users: make sure the libdate-calc-perl package is installed.

Usage on debian with default amavis and postfix installation (Tested on Sarge):

LogFile= "/usr/local/bin/prepflog.pl < /var/log/mail.info | perl /usr/share/doc/awstats/examples/maillogconvert.pl standard |"