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

Process IIS logs without sc-bytes

Reply to Post Add a New Topic
UserPost

9:18 am
June 1, 2008


gatorIT

New Member

posts 1

I have about 6 months of IIS6 log files that need to be processed with AWStats but are in the following format:

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

AWStats gives an error saying that required field %bytesd is missing.

How can I “trick” AWStats into thinking the sc-bytes field is available? I've tried renaming sc-win32-status to sc-bytes, but AWStats drops all of the records.

Or is there a better approach to accomplish this?

9:56 am
June 1, 2008


Jean-Luc

Admin

posts 1125

Try this log format definition:

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

You will get the AWStats reports, but figures about bandwidth and number of bytes will be wrong. The other data in the report will be valid.

Reply to Post

Reply to Topic:
Process IIS logs without sc-bytes

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:
3 + 8
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
98 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)