Summary.Net Archives
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Summary-Talk] Apache logs and User log definition



On 8/13/03 2:51 AM Monsoft (stats@monsoft.com) wrote:

>Summary stats where OK with WebStar logs but I'm enable to configure 
>Summary to read Apache logs.
>I have Apache LogFormat :
>"%{%Y/%m/%d %H:%M:%S}t %u %>s %v %a %h \"%{User-Agent}i\" %m \"%r\" %B 
>\"%{Referer}i\"" summary
>giving:
>2003/08/13 02:25:38 - 200 www.sas.fr 213.193.19.120 213.193.19.120 
>"Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461)" GET "GET 
>/ HTTP/1.1" 7797 "-"
>and User log format definition :
>DATE-CLF USER RESULT DOMAIN HOST HOSTNAME AGENT METHOD URI BYTES REFERER
>
>What's wrong ?

That is a highly non-standard log format. You have two redundant fields, 
%a and %h are the same, and %m is included in %r. You would be much 
better off using NCSA Combined format, which is the most common format 
and which is probably what your copy of Apache was configured for by 
default.

If you really want to use that log format, you are going to need to give 
Summary a "User log format definition", on the Miscellaneous 
configuration page, of:

DATE-YMD TIME-24 USER STATUS DOMAIN HOST SKIP AGENT SKIP FULL-REQUEST 
BYTES REFERER

Good Luck
Jason

-----------------
Jason@Summary.Net
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
  -- Peter van der Linden, Expert C Programming, Deep C Secrets
-------------
Go to <http://summary.net/list.html> to update subscription info.