Hello...

I have a problem to configure the right format for analysing my
logfiles.

My admin from our server housing-company told me that the format is:
________________________________________________________________________
_______________________________
Combined Log Format
Another commonly used format string is called the Combined Log Format.
It can be used as follows.

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
combined CustomLog log/acces_log combined 
This format is exactly the same as the Common Log Format, with the
addition of two more fields. Each of the additional fields uses the
percent-directive %{header}i, where header can be any HTTP request
header. The access log under this format will look like:

127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif
HTTP/1.0" 200 2326 "http://www.example.com/start.html"; "Mozilla/4.08
[en] (Win98; I ;Nav)" 
The additional fields are:

"http://www.example.com/start.html"; (\"%{Referer}i\") 
The "Referer" (sic) HTTP request header. This gives the site that the
client reports having been referred from. (This should be the page that
links to or includes /apache_pb.gif). 
"Mozilla/4.08 [en] (Win98; I ;Nav)" (\"%{User-agent}i\") 
The User-Agent HTTP request header. This is the identifying information
that the client browser reports about itself. 
________________________________________________________________________
_______________________________

I have tried 
LOGFORMAT "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
wtih " and without "

And
LOGFORMAT COMBINED

In the first line of the cfg-file.

But it doesn't work either.

Analog doesn't work because:

analog: Warning L: Large number of corrupt lines in log file ... Turn
debugging on or try different LOGFORMAT

Here is one line from my original logfile
212.38.199.2 - - [08/Feb/2002:16:12:41 +0100] "GET /free/airmarinend.gif
HTTP/1.1" 200 3201 www.css-media.net "-" "Mozilla/4.0 (compatible; MSIE
5.0; Win32)"

(I have pasted my cfg-file ain this mail).

Another question is:

How can i configure my cfg-file to analyse only special directorys for
example /free ?

I have to generate diffrent analyses for sending them to diffrent
customers....

Ok.. i think i don`t have to tell you that i`m no specialist in making
reports from ligfiles .... but i have to do it on my own ... Thats my
problem ...

Thank you for help ....

By

Attachment: analog.cfg
Description: Binary data

Reply via email to