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

Logformat mismatch

Reply to Post Add a New Topic
UserPost

3:18 am
November 25, 2009


bharatkalyan99

Member

posts 7

my sample log is as follows

2009-10-22    07:04:14    HKG1    8475    203.196.170.112    GET    d33hb43srw3lpd.cloudfront.net    /Cloudbuddy22.10.2009/homepage.html    200    -    Mozilla/5.0%20(Windows;%20U;%20Windows%20NT%205.1;%20en-US;%20rv:1.8.1.20)%20Gecko/20081217%20Firefox/2.0.0.20 

 I have used following LogFormat for the above log structure

   

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

 When i tried to run the awstats.pl from command line i am getting

Corrupted record line 1 (record format does not match LogFormat parameter): 2009-10-22    07:04:14    HKG1    8475    203.196.170.112    GET    d33hb43srw3lpd.cloudfront.net    /Cloudbuddy22.10.2009/homepage.html    200    -    Mozilla/5.0%20(Windows;%20U;%20Windows%20NT%205.1;%20en-US;%20rv:1.8.1.20)%20Gecko/20081217%20Firefox/2.0.0.20 

 I have tried several combinations but cant get it right

Can any body help to correct the log format if it is wrong?

If its not wrong ,please tell that how could i resolve this problem.

Thanks in Advance

4:10 am
November 25, 2009


Jean-Luc

Admin

posts 1125

Hi,

Does your log format use tabs as separators between the fields ? If this is the case, you need to specify

LogSeparator="\\s+"

I belileve that your LogFormat is okay.

6:20 am
November 25, 2009


bharatkalyan99

Member

posts 7

Thanks a lot , this really worked nicely

Reply to Post

Reply to Topic:
Logformat mismatch

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


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

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