|
Search tenon.com
Thanks to:
|
|
Post.Office
Re: getting awstats to read post.office log files
|
Hi Ken,
If you have Post.Office, the mail log will be converted to the
proper format in /Library/Tenon/WebLog/cache/mail.log from a cron job
automatically. You should not point it to
/var/spool/post.office/log/post.office.log. The original
configuration would have worked fine and the logs are generated every
15/45 minutes of the hour.
regards,
Eric
On Jan 13, 2004, at 8:49 PM, Ken Whitcomb wrote:
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
|
| Tenon Home |
Products |
Order |
Contact Us |
About Tenon |
Register |
Tech Support |
Resources |
Press Room |
Mailing Lists |
|
Copyright©2003 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara,
CA 93101. All rights reserved.
Questions about our website - Contact:
webmaster@tenon.com.
|
|