On Sun, 14 Mar 1999, Jeremy Wadsack wrote:
>
> I think you can just specify the | as the delimiter, as in
> 
>     LOGFORMAT (%S | [%d/%M/%Y:%h:%n:%j] "%j %r %j" $c %b)
> 
> The %S should gobble up everything (including spaces) until it reaches the
> space before the '|'.

This is completely wrong. The %S will only last until the first space.

George Girard wrote:
>
> I have my own log files where I log real ISP names or the IP/Host address
> when the real name is not availble...
> I am trying to figure out in Ver3.11 a LOGFORMAT string or a new log
> format that will work with the spaces in the real ISP/HOST name, like
> "University of Cambridge Statistical Laboratory - United Kingdom"
> or somewhere in the code where I might make a change or even change
> my log format....

To answer the original question, my preference would be not to log the real
name at all, but to translate it in analog using the HOSTOUTPUTALIAS command.
For example, if you turned *.statslab.cam.ac.uk into "Univ. Cam. Stats. Lab."
at the logging stage, you would not be able to see that it was a request from
the UK, so you could not construct the Domain Report.

If you really want to log real names with spaces in, you should put them in
quotes. Then the closing quote will signify the end of the hostname, and
spaces within it will not cause trouble.

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

Reply via email to