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

logresolvemerge.pl dropping all records

Reply to Post Add a New Topic
UserPost

1:16 pm
October 23, 2009


residentgob

Member

posts 5

Hello,

We've had awstats running fine with IIS fine until we introduced load-balanced servers.

I've tried to run logresolvemerge.pl in a conf file as shown:

/tools/logresolvemerge.pl C:\\inetpub\\logs\\u_ex%YY-24%MM-24%DD-24.log \\\\anotherserver\\C$\\inetpub\\logs\\u_ex%YY-24%MM-24%DD-24.log |

This works, but gives me this output:

Phase 1 : First bypass old records, searching new record…
Searching new records from beginning of log file…
Jumped lines in file: 0
Parsed lines in file: 25368
 Found 25367 dropped records,
 Found 1 corrupted records,
 Found 0 old records,
 Found 0 new qualified records.

I have looked through the forums a bit and found that switching the logformat to "%time2 %method %url %query %logname %host %other %ua %referer %code %bytesd" has solved some peoples' problems, but not mine.

Does anyone have suggestions?

Thanks

3:17 pm
October 23, 2009


Jean-Luc

Admin

posts 1125

Hi,

Exactly. When using logresolvemerge.pl , you need to replace LogFormat=2  by a "long" LogFormat definition, but you need to pick up the one that exactly matches your log format.

Check our AWStats LogFormat page. Among other things, it shows the appropriate AWStats format codes corresponding to the common IIS format codes. If you prefer, paste here the line starting with #Fields:  from your log file and we will translate it in the AWStats LogFormat.

5:07 pm
October 23, 2009


residentgob

Member

posts 5

Hey Jean-Luc,

Thanks for the reply.

The #Fields: line is:

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

If you could translate this, that would be great.

Thanks so much for your time.

5:39 am
October 24, 2009


Jean-Luc

Admin

posts 1125

Try this :

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

11:14 am
October 26, 2009


residentgob

Member

posts 5

Hi Jean-Luc,

Wow, that worked out great.  I am now receiving like before:

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
Jumped lines in file: 0
Parsed lines in file: 13068
 Found 0 dropped records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 13068 new qualified records.

Thank you so much for your help.  I will update this thread if any complications arise.

Reply to Post

Reply to Topic:
logresolvemerge.pl dropping all records

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 + 4
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

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