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

Log format not taking up while processing

Reply to Post Add a New Topic
UserPost

3:49 am
June 23, 2009


raj

Guest

Hi there,

Actually i have made setup of your AWSTATS and being using for testing purpose. In the begining the log format which i was given worked fine but unfortunately it started giving errors.

The log format from the log looks as:

"3.57.46.243 -  [07/Jun/2009:00:00:01 +0000] "GET /lbmonitor.html HTTP/1.1" 200 16"

Here actually there is space coming in between the log format instead of "-". After the IP address one "-" is there and after that we have blank space which the log format has to consider it as "%other", because later in the same log we are getting the value into that location i.e. into that blank space location. So, when the analysis is done all the records are taken as corrupted records and i am not able to get the right hit count.

The log format i used for the above is:

LogFormat="%host %other %other %time1 %methodurl %code %bytesd"

Please let me know whether the space can be considered by awstats, so that the records will not be dropped while analysing log.

Its bit urgent, can any one help please.

Thanks

Raj

5:52 am
June 23, 2009


Jean-Luc

Admin

posts 1125

Hi,

AWStats does not accept empty fields. You need to filter the log file before you let AWStats parse it. This can be done with sed  :

LogFile="sed -e 's/  / - /g' /path_to/log_file.log |"

11:54 pm
June 28, 2009


raj

Guest

HI Jean

thanks for your quick response.

can i know whether i can use like this as for your info:

LogFile="sed -e 's/  / – /g' D:\\AWStats
\\wwwroot\\cgi-bin\\Logs\\bo-web\\node01\\nod
e01.log |"

Because this is throwing error as “sed is not an internal command”

Is there any other way i can use this and get rid of space issue please

Thanks

raj

5:53 am
June 29, 2009


Jean-Luc

Admin

posts 1125

sed  is a Unix/Linux utility. There is a Windows version too: sed for Windows. Of course, you need to install it before you call it from AWStats.

10:03 pm
June 29, 2009


raj

Guest

Thank you very much for the reply and will try and will get back to you once i find the result for the same

Reply to Post

Reply to Topic:
Log format not taking up while processing

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


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: 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)