Cannot parse IIS log file ...


 

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Cannot parse IIS log file …

Add a New Topic Reply to Post
UserPost

11:20 am
November 7, 2007


derrickhackman

Guest

I am trying to run AWStats across an IIS log file with the following log file headers:

 

#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

I have the LogFormat specified as:

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

When I run  awstats.pl I do not get any output in the resulting output file. It almost seems like AWStats does not like the LogFormat and it does not parse the log file.

 

Thoughts? 

12:00 pm
November 7, 2007


Jean-Luc

Admin

posts 231

When there is an update problem, it is recommended that you run the AWStats update from the command line. At the end of the update, AWStats will show a report like the following one:

Create/Update database for config "/path_to_awstats/awstats.my_domain.conf" by AWStats version 6.7 (build 1.892)
From data in log file "/path_to_log_file/log_file_name"…
Phase 1 : First bypass old records, searching new record…
Searching new records from beginning of log file…
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)…
Jumped lines in file: 0
Parsed lines in file: 3693
 Found 520 dropped records,
 Found 12 corrupted records,
 Found 0 old records,
 Found 3161 new qualified records.

This will help understand what happens. Feel free to copy here the report you get when you run the update.

Jean-Luc

1:53 pm
November 7, 2007


Jean-Luc

Admin

posts 231

Note that %host_r  is reserved for mail logs. I would replace it with %other.

Jean-Luc

Add a New Topic Reply to Post


Reply to Topic: Cannot parse IIS log file …

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

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 7 + 10        (Required)

Topic Reply:


 

WebStats1


About the InternetOfficer.com forum

Currently Online:

3 Guests

Maximum Online: 31

Forums:

Groups: 2

Forums: 7

Topics: 109

Posts: 516

Members:

There are 29 members

There are 95 guests


Jean-Luc has made 231 posts

Top Posters:

Steve - 14

angelko - 5

cwei - 4

KevinA - 3

Kinglui - 3

Administrator: Jean-Luc | Moderators: Jean-Luc


© Simple:Press Forum - Version 3.1.2 (Build 340)