I'm running an instance of Zope 2.8.6, and I'm stumbling into a problem with the format of Z2.log. Unlike an Apache log, which would have the format %S - %u ... Z2.log appears to have the format %S- %u ... The lack of the space following %S causes analog to choke on an address that contains a hyphen in it, and in my case, analog cannot read half of Z2.log. I've tried looking up how to change the format Z2.log comes in, but I haven't found anything useful. Is there any way to work around this? -Sascha
I'm running an instance of Zope 2.8.6, and I'm stumbling into a problem with the format of Z2.log. Unlike an Apache log, which would have the format
%S - %u ...
Z2.log appears to have the format
%S- %u ...
The lack of the space following %S causes analog to choke on an address that contains a hyphen in it, and in my case, analog cannot read half of Z2.log. What is 'analog'?
I have Zope 2.8.8 and my Z2.log entries looks like: 127.0.0.1 - Anonymous [04/Oct/2006:23:17:06 +0200] "GET /manage HTTP/1.1" 401 546 "" "Mozilla/5.0 (X11; U; Linux x86_64; pl-PL; rv:1.8.0.7) Gecko/20060921 Ubuntu/dapper-security Firefox/1.5.0.7" I have no Z2.8.6 instance to compare but maybe you may try installing newer Zope 2.8.x (there should be no compatibility issues) and see if it helps. -- Maciej Wisniowski
--On 15. November 2006 16:37:33 -0500 Sascha Adler <sascha.adler2@gmail.com> wrote:
I'm running an instance of Zope 2.8.6, and I'm stumbling into a problem with the format of Z2.log. Unlike an Apache log, which would have the format
%S - %u ...
Z2.log appears to have the format
%S- %u ...
The lack of the space following %S causes analog to choke on an address that contains a hyphen in it, and in my case, analog cannot read half of Z2.log. I've tried looking up how to change the format Z2.log comes in, but I haven't found anything useful. Is there any way to work around this?
No idea what you're talking about. The Z2.log contains a space between the client address and the minus sign - at least for Zope 2.8+. -aj
Sascha Adler schrieb:
I'm running an instance of Zope 2.8.6, and I'm stumbling into a problem with the format of Z2.log. Unlike an Apache log, which would have the format
%S - %u ...
Well the apache log format is configurable. I don't know why the analysis products stuck with the weird default.
Z2.log appears to have the format
%S- %u ...
The lack of the space following %S causes analog to choke on an address that contains a hyphen in it, and in my case, analog cannot read half of Z2.log. I've tried looking up how to change the format Z2.log comes in, but I haven't found anything useful. Is there any way to work around this?
Usually you work around this by placing apache as frontend to zope - which makes a log things easy (simple balancing, switching, virtual hosting, ssl, ... to name just a few) and last not least configurable logging. You can completely disable Z2.log. For no good reason, many log analyzer do not look on mime-information of the request but try to find out by inspecting the suffix of the url, thy of course als don't know that /foo and /foo/ in zope really means the same thing and so on. Sane log analysis makes a good deal of work I can tell you. Good luck T.
Sascha Adler wrote at 2006-11-15 16:37 -0500:
I'm running an instance of Zope 2.8.6, and I'm stumbling into a problem with the format of Z2.log. Unlike an Apache log, which would have the format
%S - %u ...
Z2.log appears to have the format
%S- %u ...
I am using Zope 2.8.1 and do not see this problem Someone else, using Zope 2.8.8, too, does not see this problem. It would be very surprising when Zope 2.8.6 should have the problem. -- Dieter
participants (5)
-
Andreas Jung -
Dieter Maurer -
Maciej Wisniowski -
Sascha Adler -
Tino Wildenhain