Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setup AWStats

Status
Not open for further replies.

xunan79

Technical User
Jan 27, 2004
9
US
I'm trying to setup the AWStats to read web log files, download from web server, on a local work-grouped machine. Can someone tell me how to modify the configuration file?

Thank you.

Nan
 
awstats.model.conf is pretty informative. Likewise, awstats.sf.net has very good documentation.
 
Yeah, I was going through the site but still couldn't find what I was looking for. Most of the documents were assuming that you are running AWStats on a Web Server, which is not in my case.

The model config file itself is indeed very informative, but there is only this one argument, SiteDomain, that has been giving me headache. Whenever I'm trying to run AWStats, I'm prompted by a error regarding the SiteDomain. Since I was running a downloaded log on a workstation, what argument should I give the "SiteDomain"?

Thanks.

Nan
 
...but to the program you still are. You still need the domain name and everything else. Have you tried setting it up and seeing if it worked? Post any errors you get after it is setup.

iSeriesCodePoet
iSeries Programmer/Lawson Software Administrator
[pc2]
See my progress to converting to linux.
 
OK. Here is what I did and what I got.

"C:\Program Files\AWStats\ awstats.pl -update -config=model
Error: SiteDomain parameter not defined in your config/domain file. You must add
it for using this version of AWStats.
Setup ('./awstats.model.conf' file, web server or permissions) may be wrong.
See AWStats documentation in 'docs' directory for informations on how to setup a
wstats.

C:\Program Files\AWStats\ awstats.pl -output=testpage -confi
g=model
<html><body>
<br /><span style=&quot;color: #880000&quot;>
Error: SiteDomain parameter not defined in your config/domain file. You must add
it for using this version of AWStats.
</span><br />
<br /><b>Setup ('./awstats.model.conf' file, web server or permissions) may be w
rong.</b><br />
See AWStats documentation in 'docs' directory for informations on how to setup a
wstats.
</body></html>&quot;

Anyone know what's going on there?

Once again, I was running AWStats on a workgrouped workstation with a downloaded IIS log file with modified format.

Thanks a lot.
 
Have you followed the directions for setting it up? You changed the name of the config to awstats.mysite.com.conf? You edited the config file so it matched your setup? Can you post your awstats.mysite.com.conf file?

iSeriesCodePoet
iSeries Programmer/Lawson Software Administrator
[pc2]
See my progress to converting to linux.
 
Hi, sorry for the long delay, but I wasn't around for the past week. The following is the first a few lines of log file I was trying to get AWStats to run upon.

#Software: Microsoft Internet Information Services 5.0
#Version: 1.0
#Date: 2002-08-02 00:05:44
#Fields: date time c-ip cs-username s-sitename s-computername s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes cs-bytes time-taken cs-version cs-host cs(User-Agent) cs(Referer)
2002-08-02 00:05:44 63.159.194.214 - W3SVC24 TITANS 208.209.200.112 80 GET /index.html - 200 0 10965 322 1860 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+98;+Compaq;+MSN+6.1;+MSNbMSFT;+MSNmen-us;+MSNc21) -
2002-08-02 00:05:44 63.159.194.214 - W3SVC24 TITANS 208.209.200.112 80 GET /images/aboutbt.gif - 200 0 2043 310 594 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+5.5;+Windows+98;+Compaq;+MSN+6.1;+MSNbMSFT;+MSNmen-us;+MSNc21) 2002-08-02 00:05:45 63.159.194.214 - W3SVC24 TITANS 208.209.200.112 80 GET /images/contactbt.gif - 200 0 1887 312 781 HTTP/1.1
Regarding your question, I didn't modify the config file as directed. I'm pretty sure that my problem here is due to a few incorrect variables in the config file. What I'm suspect that I might have set the LogFormat (which is a customized format) and SiteDomain wrong.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top