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

3:49 am
June 23, 2009



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:

" -  [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.



5:52 am
June 23, 2009



posts 1125


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



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



5:53 am
June 29, 2009



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



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

Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
5 + 5

About the Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
13 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

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


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)