Thanks a lot Stephen, It worked.

-----Original Message-----
From: Stephen Turner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 9:13 AM
To: '[EMAIL PROTECTED]'
Subject: Re: [analog-help] Log format error


On Wed, 14 Feb 2001, Manish Kumar wrote:

> Following is the FIRST LINE of my customized log file is this . It has
> repetitive entries.
> 
> www.ax.com http://www.a.com/IM/ad.jsp 29.10.93.10 - -
[13/Feb/2001:13:24:22
> -0600] "GET /graphics/a.gif HTTP/1.1" 200 816    "www.ax.com"
> "http://www.ax.com/ad.jsp" 29.10.93.10 - - [13/Feb/2001:13:24:22 -0600]
"GET
> /graphics/a.gif HTTP/1.1" 200 816        
> 
> I am not able to describe its LOGFORMAT to analog because of the
repetitive
> entry of same stuff in only one line.
> Please tell me what LOGFORMAT will represent it .

This is all a single line? If so, you want to fix your web server
configuration, because you are using twice as much disk space as necessary!

But to read this logfile, you can specify your own LOGFORMAT. The idea is to
use %j for anything you want to ignore, for example duplicated information;
in this case it looks like that could be the whole of the second half of the
line. So try something like this, if I've understood what all the fields
represent:

LOGFORMAT (%v %f %S %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r%wHTTP%j" %c %b %j)

-- 
Stephen Turner               http://www.statslab.cam.ac.uk/~sret1/
  Statistical Laboratory, Wilberforce Road, Cambridge, CB3 0WB, England
  "Your account can only be used for a single internet session at any one
   time and for no more than 24 hours in any one day." (NTL terms of use)

------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to