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

Cannot parse IIS log file …

Reply to Post Add a New Topic
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 1125

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 1125

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

Jean-Luc

4:56 am
August 5, 2010


karyp

Guest

Hi Jean

Ii am now able to use to generate consolidate log but not able to get result . I used following in conf file

LogFile="D:\Awstats\tools\logresolvemerge.pl D:\Awstat\_automate\logsfolder\ex1007*.log |"

then command

perl awstats.pl -config=mysite -update

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: 344859 
Found 0 dropped records, 
Found 115747 corrupted records, 
Found 0 old records, 
Found 229112 new qualified records.

My log format is as follows and I am presently using logformat=2

#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2010-07-25 00:00:02
#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 sc-bytes cs-bytes time-taken

I dont know but its not displaying the required result in browser !.PLease help meConfused

11:52 am
August 5, 2010


Jean-Luc

Admin

posts 1125

LogFormat=2  is not compatible with logresolvemerge . The following LogFormat  should work:

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

Reply to Topic:
Cannot parse IIS log file …

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


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
17 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 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)