On 9 Mar 2000, heddy Boubaker wrote:

> 
>  hi, 
>  
>  I'm a new Analog 4.03 user and I have pbs with LOGFORMAT:
>  
>  We have a complex Apache LogFormat as follow:
>  %h(%{X-Forwarded-for}e) %l %u %t \"%r\" %s %b \"%{Referer}i\" %\"%{User-Agent}i\" 
>%{Cookie}i
>      
>  The LOGFORMAT config could not use it because of parenthesis in the format
>  definition, how to solve that please ?
>  

Yes it can. Just put
  APACHELOGFORMAT '%h (%{X-Forwarded-for}e) %l %u %t \"%r\" %s %b ...'

>  BTW I would like Analog to use IP addresses from X-Forwarded-for field (the
>  web server is behind a firewall and accessible trough a squid accelerator
>  only) instead of %h field (which is the machine on which the accelerator is
>  running) BUT only if X-Forwarded-for is defined (- elsewhere), some machines
>  have direct access to the web server so the %h is really the client
>  machine. Is there any way to do that w/ analog ?
>  

No, it can only look in one field at the moment.

-- 
Stephen Turner               http://www.statslab.cam.ac.uk/~sret1/
  Statistical Laboratory, 16 Mill Lane, Cambridge CB2 1SB, England
"8th March 2000. National No Smoking Day. Ash Wednesday." (On a calendar)

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