|
I found out the awstats was reading the default itools mail log
file so I changed the line in
/Library/Tenon/WebLog/cgi-bin/awstats.mail.conf
from
LogFile="/Library/Tenon/WebLog/cache/mail.log"
to
LogFile="/var/spool/post.office/log/post.office.log"
Now, instead of a beautiful log page, I get this:
Warning: HostAliases parameter is not defined,
awstats choose "Mail localhost 127.0.0.1".
AWStats did not found any valid log lines that
match your LogFormat parameter, in the 50th first non commented
lines read of your log.
Your log file
/var/spool/post.office/log/post.office.log must have a bad format
or LogFormat parameter setup does not match this
format.
Your AWStats LogFormat parameter is:
%time2 %email %email_r %host %host_r %method %url %code
%bytesd
This means each line in your web server log
file need to have the following personalized log format:
%time2 %email %email_r
%host %host_r %method %url %code %bytesd
And this is a sample of records AWStats found
in your log file (the record number 50 in your log):
20040113000550-0500:LoadHostFilterTable: loading
name: spam desc: filter w/ spam assassin
Setup ('awstats.mail.conf' file, web server
or permissions) may be wrong.
See AWStats documentation in 'docs' directory
for informations on how to setup awstats.
The line that defines the log format in
awstats.mail.conf reads:
LogFormat="%time2 %email %email_r %host
%host_r %method %url %code %bytesd"
So I suppose this is the line that needs to
change but I'm not sure to what...
anyone able to help? Is there something wrong
with my installation? Does anyone else using Post.Office and awstats
see a mail log page?
TIA,
ken Whitcomb
|