Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Awstats throws error if data file exists

Reply to Post Add a New Topic
UserPost

1:56 pm
November 12, 2008


talkinggoat

Member

posts 3

I have gotten awstats to work, up to the point where I am ready to generate an updated stats file. When I try to, I have to go in and delete the old file or I get:

AWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log.
Your log file C:\\LogFiles\\xxxxx.com\\W3SVC714554437\\extend1.log must have a bad format or LogFormat parameter setup does not match this format.

Your AWStats LogFormat parameter is: 2
This means each line in your web server log file need to have “MSIE Extended W3C log format” like this:
date time c-ip c-username cs-method cs-uri-sterm sc-status sc-bytes cs-version cs(User-Agent) cs(Referer)

And this is an example of records AWStats found in your log file (the record number 50 in your log):
2008-11-12 19:43:23 GET /Portals/_default/Skins/FullWidth/contextpane_01.gif – - 98.191.20.5 HTTP/1.1 Mozilla/5.0+(Windows;+U;+Windows+NT+5.2;+en-US;+rv:1.8.1.17)+Gecko/20080829+Firefox/2.0.0.17+(.NET+CLR+3.5.30729) http://www.xxxxx.com/ 304 211

Setup ('C:\\Inetpub\\DNN\\awstats/awstats.www
.xxxxx.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

As long as I delete the stats file, it works fine. What am I missing?

2:05 pm
November 12, 2008


Jean-Luc

Admin

posts 1125

Hi, 
 

This is a known problem. "LogFormat=2 " is not reliable. Replace it by a complete definition of LogFormat . Try this : 

 
LogFormat = "%time2 %method %url %query %logname %host %other %ua %referer %code %bytesd"

4:00 pm
November 12, 2008


talkinggoat

Member

posts 3

Now I'm getting:

Error: Your personalized LogFormat does not include all fields required by AWStats (Add %bytesd in your LogFormat string).

From awstats.xxxxx.conf:

LogFormat=“%time2 %method %url %query %logname %host %other %ua %referer %code %bytesd”

From IIS log:

#Fields: date time cs-method cs-uri-stem cs-uri-query cs-username c-ip cs-version cs(User-Agent) cs(Referer) sc-status sc-bytes

4:11 pm
November 12, 2008


Jean-Luc

Admin

posts 1125

Try this:

LogFormat = "%time2 %method %url %query %logname %host %other %ua %referer %code %bytesd"

(now with the right double quotation marks)

5:13 pm
November 12, 2008


talkinggoat

Member

posts 3

Worked that time. Thanks.

Reply to Post

Reply to Topic:
Awstats throws error if data file exists

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
9 + 4
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
96 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2709

Membership:

There are 257 Members
There have been 302 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)