Tenon Intersystems Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation

Search tenon.com

Thanks to:

Post.Office

Re: getting awstats to read post.office log files

To: post_office@xxxxxxxxxxxxxxx
Subject: Re: getting awstats to read post.office log files
From: anita@xxxxxxxxx (Anita Holmgren)
Date: Wed, 14 Jan 2004 08:51:28 -0800
At 11:49 PM -0500 1/13/04, 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?

Ken, are you using the logging analysis from iTools 7 or are you doing this yourself? iTools 7 (which you own) has built-in analysis for mail traffic, so if iTools 7 is on the same machine as Post.Office, you can use this new capability.

iTools 7 automatically configures Advanced Web Statistics (awstats) log analyser when a virtual host is added.  There is no manual configuration required to generate the log. In addition, only authorized people are able to view the log report generated by awstats.

-Anita
--
Tenon Intersystems                                       805-963-6983
232 Anacapa Street, #2A                               anita@xxxxxxxxx
Santa Barbara, CA 93101                          http://www.tenon.com

| Tenon Home | Products | Order | Contact Us | About Tenon | Register | Tech Support | Resources | Press Room | Mailing Lists |

Powered By iTools

Copyright©2003 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara, CA 93101. All rights reserved.
Questions about our website - Contact: webmaster@tenon.com.


Tenon Home  Tenon Home  Tenon Home  Tenon Home Product Info  Tenon Ordering Contact About Register Support Resources Press Mailing Lists