> > 64.12.96.105 www.localads.net - [02/Oct/2001:23:04:45 +0000] "GET
> > /local_link.gif HTTP/1.0" 404 377
> "http://www.barkeronline.freeserve.co.uk/"
> > "Mozilla/4.0 (compatible; MSIE 5.5; AOL 6.0; Windows 98; Win 9x 4.90;
> Hotbar
> > 2.0)"
>
> Analog will automatically detect that this is in NCSA combined format
If I comment out logformat then Analog processes that particular log format.
But.....
> > And here's what the old logs look like:
> >
> > 04/30/2001 23:33:38 24.27.47.106 www.localbounty.com GET
> > /imagebin/logo_type.gif
> > http://www.localbounty.com/view/categories.cfm?subcat=Administrative and
> > Clerical&cat=Jobs Mozilla/4.0 (compatible; MSIE 5.0; Windows 98;
> DigExt)
> > 200 2389 60
....not this one. If I use the following LOGFORMAT, it processes this log
file format, but doesn't autodetect the one above (NCSA):
LOGFORMAT (%m/%d/%Y
%h:%n:%j\t%s\t%v\t%j\t%u\t%j\t%r\t%f\t%j\t%B\t%c\t%b\t%T)
How can I tell it to try the LOGFORMAT as pasted above, but also to
auto-detect the others that don't match it?
> I doubt that you can write a LOGFORMAT that will allow Analog to reliably
> handle that line, because you have no reliable delimiters between fields.
> For instance, the "and" after "Administrative" is supposed to be part of
> your query, but there's no way that Analog can tell that it's not just the
> next field (which would be the browser).
Damn, that's a problem. I could fix it now easily, by making all URLs
properly URL formatted with %20 where spaces should be. But for the rest of
the log files it'll have to ignore them
Cheers
Will
+------------------------------------------------------------------------
| This is the analog-help mailing list. To unsubscribe from this
| mailing list, go to
| http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
| List archives are available at
| http://www.mail-archive.com/[email protected]/
| http://lists.isite.net/listgate/analog-help/archives/
| http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------