On 2/4/00 8:39 PM Josh Wardell ([EMAIL PROTECTED]) wrote:

>Hello everyone, I was wondering if someone could help me with this
>problem...my current version of Analog (4.02 for Mac) cannot make sense of
>my webstar log. This is surprising because I have been using Analog for a
>while now, and if anything, it could not read other formats, but it never
>had a problem with webstar. Can someone look at my information below, I
>don't believe I'm missing something but who knows. Thanks for any help.
>
>from analog.cfg (neither work):
>
>LOGFORMAT (%m/%d/%y        %h:%n:%j        %j      %c     %S.   %B %f    %j
>%r     %b     )
>#LOGFORMAT WEBSTAR
>
>from log file:
>
>!!WebSTAR       STARTUP 01/16/00:14:02
>!!LOG_FORMAT DATE TIME RESULT STATUS HOSTNAME AGENT REFERER HOSTFIELD URL
>BYTES_SENT
>01/16/00        14:03:18        OK      200     ppp-20-94-55.libero.it.
>Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)
>http://jwardell.syr.edu/pjmp3/index.html        "jwardell.syr.edu"
>:pjmp3:graphics:yieldbut.gif    473

You were probably using Analog 2.x before. Starting with Analog 3.x, 
Analog has gotten very picky about duplicate fields in the log format. 
>From Analog's point of view RESULT and STATUS  both contain the same 
information. When you are using LOGFORMAT WEBSTAR you probably get a 
warning about duplicate fields in the log format.

The correct solution is to write a LOGFORMAT command, as you have done. 
You have it almost correct, it just needs a few touchups. You need to use 
'\t' instead of spaces or tabs, the period after the %S probably 
shouldn't be there, and the %j near the end that coresponds to HOSTFIELD 
can be %v if you want. Try:

LOGFORMAT (%m/%d/%y\t%h:%n:%j\t%j\t%c\t%S\t%B\t%f\t%v\t%r\t%b)

Good Luck
Jason

-----------------
[EMAIL PROTECTED]
-----------------
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


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