Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






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

Log Format issue IIS 5.0 and awstats

Reply to Post Add a New Topic
UserPost

11:52 am
May 15, 2009


simmikhera

New Member

posts 1

hi there,

facing some issue with parsing log files. the details are:

fields line in the log file:

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

a line from the logs:

2009-04-13 01:08:10 119.63.193.215 – 205.210.228.34 80 GET /index.ihtml – 302 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1)

log format specified in the config file:

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

now, the issue is when i run awstats.pl update command, it gives me an error that u have some logformat error, add %bytesd in ur log format.

there are no bytes captured in the log files, still, when i add %bytesd at the end  (which looks senseless) and obviously gives me 0 dropped records, 'N' corrupted records, 0 new qualified records.

to my satisfaction i have matched the fields from website's properties, log entries, awstats documentation. but i think i need an expert eye.

thanks!

12:50 pm
May 15, 2009


Jean-Luc

Admin

posts 1063

Hi,

The %bytesd  field (called sc-bytes  by IIS) is mandatory. It is used to calculate bandwidth usage and number of bytes transferred.

As there is no %bytesd  in your log file, you could fool AWStats with this:

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

Number of bytes and bandwith data will be wrong, but all other values in the stats will be valid.

Reply to Post

Reply to Topic:
Log Format issue IIS 5.0 and awstats

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:
5 + 7
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 201

Currently Online:
13 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 513
Posts: 2447

Membership:

There are 4127 Members
There have been 254 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

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

Recent New Members: eniko, leptserkhan, JohnnyB, dweb3d, buck, newtoawstat

Administrators: Jean-Luc (1063 Posts)

Moderators: Jean-Luc (1063 Posts)