Logging authenticated users with Apache & Zope
Hi All, I'm trying to create statistics from a website the runs on Zope behind Apache. * When I use the logfiles from apache te create the statistics I'm missing the authenticated users, the are not defined in the apache logs, they are available in the Z2.log * When I use the Z2.logfile I'm missing the remote IP-adresses, because it only logs the IP-adres of the local apache installation. Does anyone has a solution to this problem? Greetings Ralph
Ralph vd Houdt wrote at 2003-2-24 13:47 +0100:
... * When I use the Z2.logfile I'm missing the remote IP-adresses, because it only logs the IP-adres of the local apache installation.
My VHM patch may help you: <http://www.dieter.handshake.de/pyprojects/zope> Dieter
Hi Dieter, I'veinstalled your VHM patch, the remote adress can now be used in Zope, but unfortunately the remote adress isn't logged in Z2.log as the remote addres. Any guesses? Greetings Ralph ----- Original Message ----- From: "Dieter Maurer" <dieter@handshake.de> To: "Ralph vd Houdt" <ralph@ezcompany.nl> Cc: <zope@zope.org> Sent: Monday, February 24, 2003 9:10 PM Subject: Re: [Zope] Logging authenticated users with Apache & Zope
Ralph vd Houdt wrote at 2003-2-24 13:47 +0100:
... * When I use the Z2.logfile I'm missing the remote IP-adresses, because it only logs the IP-adres of the local apache installation.
My VHM patch may help you:
<http://www.dieter.handshake.de/pyprojects/zope>
Dieter
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Ralph, Also have a look at http://dev.zope.org/Wikis/DevSite/Proposals/RemoteAddrAndAccelerators It should be done in CVS with the toby-http-forwarded-for-branch tag, but I haven't checked it out. It's on the roadmap to Zope 2.7, which should be released as an alpha soon (according to the wiki). Pieter
Ralph vd Houdt wrote at 2003-2-25 09:46 +0100:
I'veinstalled your VHM patch, the remote adress can now be used in Zope, but unfortunately the remote adress isn't logged in Z2.log as the remote addres. Any guesses?
Z2 logging is very low level (in "ZServer"). You may look at logging of the authenticated user. This, too, is a high level concept logged at low level. You may see how to do it for remote address as well. Dieter
participants (3)
-
Dieter Maurer -
PieterB -
Ralph vd Houdt