I don't know how many other people run into this but I get hundreds of 
     these errors per month.  My hits per month is approaching 2 million.  
     Significant numbers of my visitors come via search engines.  As seen 
     in the log file entries many of my visitors are referred with 
     misformed URLs (extra double quotes included in the referrer portion 
     of the header.)
     
     If as some have suggested the answer is to change the configuration of 
     how my Web server logs the entries, how do I reconfigure it to have 
     the server replace the embedded quotes with something else?  I'm 
     running Netscape Enterprise server 3.51, about to upgrade to 3.6, on 
     Windows NT 4.0.  I don't see any way within the Netscape Admin server 
     interface to change something at that level.  And, if its possible to 
     do a replacement, what is the preferred replacement character, i.e., 
     <single quote>, <space>, %something, etc.,
     
     My current log file format is:
     
     format=%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] 
     "%Req->reqpb.clf-request%" %Req->srvhdrs.clf-status% 
     %Req->srvhdrs.content-length% "%Req->headers.referer%" 
     "%Req->headers.user-agent%"
     
     Thanks in advance,
     
     Ed Kabat
     Web Administrator
     Defense FInance and Accounting Service
     [EMAIL PROTECTED]


______________________________ Reply Separator _________________________________
Subject: Re: [analog-help] Corrupt Log File Entries 
Author:  <[EMAIL PROTECTED]> at ~ismail
Date:    2/18/99 10:18 AM


On Wed, 17 Feb 1999, Jason Linhart wrote: 
>
> This is one of those complex cases where there isn't any correct answer. 
> It is not legal to have double quotes inside a referrer string, but they 
> are none the less there. There is no way to parse lines correctly that
> have quotes in the referrer string as long as the log is quoting the 
> string with double quotes. Technicaly the server ought to prevent the 
> double quotes from being written to the log file.
>
     
I thoroughly agree with this. It's "obvious" to a human what's meant, but not 
to a computer. (And if you think it is, then what if the referrer contained 
<quote><space>?).
     
However, the natural solution would be to use <backslash><quote> which it has 
to be admitted analog doesn't understand either. I haven't bothered about this 
before because I've never seen a large enough frequency of them that it would 
make a difference -- and because of Jason's comment above.
     
--
Stephen Turner    [EMAIL PROTECTED]    http://www.statslab.cam.ac.uk/~sret1/
  Statistical Laboratory, 16 Mill Lane, Cambridge CB2 1SB, England 
  "Ad infinitum, if not ad nauseam." (Interviewee, BBC Radio 4)
     
-------------------------------------------------------------------- 
This is the analog-help mailing list. To unsubscribe from this 
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE. 
--------------------------------------------------------------------
     

--------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
--------------------------------------------------------------------

Reply via email to