OK,
This helped:
APACHELOGFORMAT (%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\")
I was unaware (or did read the documents) that the "'s had to be removed.
Thanks,
At 17:40 8/27/2001 -0700, you wrote:
>Per olof Ljungmark ([EMAIL PROTECTED]):
>
> > Dear all,
>
> > Would really appriciate some help with this one; I am new to analog but
> > from what I have seen so far I like it and plan to keep it. Now to the
> problem.
> > RH Linux 6.2 - Apache 1.3.20 - Analog 5.03 - Virtual hosts with different
> > log for each
>
> > From httpd.conf:
> > LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\""
> > combined
>
> > <VirtualHost [IP]>
> > CustomLog /var/log/httpd/<logname> combined
>
> > Now, everything works except for one virtual host/log, either I get:
> > "Can't auto-detect format of logfile" (if no LOGFORMAT statement in cfg)
>
> > _or_
>
> > "Warning L: Large number of corrupt lines in logfile
> > Current logfile format:
> > "%v %S %j %j [%d/%M/%Y:%h:%n:%j] "%j%w%r%wHTTP%j" %c %b "%f"
> "%B""\n"
> > (with the APACHELOGFORMAT statement as described in the manual)
>
>It looks like you might have an extra " in your logformat. Try this:
>
>APACHELOGFORMAT "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
>\"%{User-Agent}i\""
>
>
> > Again, this happens with just _one_ virtual host log file despite logging
> > setup identical for all of them. If I copy another Vhost's logfile in
> place
> > of the troubled one it will work fine. If I erase the log and start from
> > scratch it still won't work. If I inspect the logs the format appear
> > identical in all of them. Could it be a mistake at build time?
>
> > Puzzled and running out of ideas at 2am I would appriciate any help,
> thanks.
>
>Hmmm.... Perhaps something is corrupt in that particular virtual host
>configuration. Is it possible the the virtual host name (%v) contains
>a space? Or maybe there are unescaped " characters in the requests on
>the site?
>
>You can turn on DEBUG C and check the output from Analog: It will tell
>you which lines are corrupt and make a good guess as to where in each
>line the problem occurs.
>
>
>--
>
>Jeremy Wadsack
>Wadsack-Allen Digital Group
>
>+------------------------------------------------------------------------
>| 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
>+------------------------------------------------------------------------
Per olof Ljungmark
---------------------------------------------------------
Intersonic AB, Vretenvaegen 2, 171 54 Solna
Stockholm, Sweden Phone +468 97 27 00 Fax +468 97 27 11
---------------------------------------------------------
+------------------------------------------------------------------------
| 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
+------------------------------------------------------------------------