Re: [Zope] Changing the name of the access log file
OK one of the servers allowed me to change my log file name - and the other one still is called Z2.log. Must be user error. Will sort that out later. Daily log rolling seems to work - though I am still fighting with changing the name of the archived files. Hopefully restarting the server will give me joy - otherwise I seem to have modified the wrong line in logger.py. But I decided to take my giant log file and use grep to break it into smaller pieces to run through Analog to get some web stats. However, Analog complained about EVERY line. There seems to be an extra space between the IP address and the next argument whose function I never recall because the value is always "-". I did a global search and replace and re-ran the file and it processes just fine (ignoring the diffuculties of determining which requests count as pages in a world where urls do not have file type extensions). I searched for ZServer + Analog and Zope + Analog and turned up some posts - none of which reported any difficulties. Is anyone else currently using Analog to run statistics on their Zope sites? and have you had any similar difficulties? I am using Analog 5.31 and Zope 2.6.1. -- cnk@caltech.edu
This probably isn't the answer you want, but were I you, I would save a bit of headache and just put Apache in front of Zope. There is lots of documentation on Zope.org and in the Zope Book about how to do this. Then you could use the Apache logs, which everything in the world will read. You will also have more flexibility in sorting log entries to different files and whatnot. On Fri, 2003-10-24 at 19:25, cnk@caltech.edu wrote:
OK one of the servers allowed me to change my log file name - and the other one still is called Z2.log. Must be user error. Will sort that out later. Daily log rolling seems to work - though I am still fighting with changing the name of the archived files. Hopefully restarting the server will give me joy - otherwise I seem to have modified the wrong line in logger.py.
But I decided to take my giant log file and use grep to break it into smaller pieces to run through Analog to get some web stats. However, Analog complained about EVERY line. There seems to be an extra space between the IP address and the next argument whose function I never recall because the value is always "-". I did a global search and replace and re-ran the file and it processes just fine (ignoring the diffuculties of determining which requests count as pages in a world where urls do not have file type extensions). I searched for ZServer + Analog and Zope + Analog and turned up some posts - none of which reported any difficulties. Is anyone else currently using Analog to run statistics on their Zope sites? and have you had any similar difficulties?
I am using Analog 5.31 and Zope 2.6.1.
Quoting Chris McDonough <chrism@zopemafia.com>:
This probably isn't the answer you want, but were I you, I would save a bit of headache and just put Apache in front of Zope.
Actually while waiting for a reply, I think I found the correct place to remove that extra space. I am just kind of surprised that none of the dicussions of using Analog with Zope mentioned the format problem - or that they were not processing ZServer logs but rather Apache logs. Guess I should run off to where ever NCSA Combined format is defined and determine if ZServer is wrong or it is just that Analog is being too picky about spacing. -- cnk@caltech.edu
On Fri, Oct 24, 2003 at 05:20:17PM -0700, Cynthia Kiser wrote:
Quoting Chris McDonough <chrism@zopemafia.com>:
This probably isn't the answer you want, but were I you, I would save a bit of headache and just put Apache in front of Zope.
Actually while waiting for a reply, I think I found the correct place to remove that extra space. I am just kind of surprised that none of the dicussions of using Analog with Zope mentioned the format problem
I thought I mentioned it at some point, maybe not. Anyway, I use analog on zope logs. Works fine with zope 2.6.2 (the extra space is fixed there). On earlier zopes I had to use this in my analog config: LOGFORMAT (%S - %u [%d/%M/%Y:%h:%n:%j %j] "%j %r %j" %c %b "%f" "%B") -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's STINKY SQUIRREL PHLEBOTOMIST! (random hero from isometric.spaceninja.com)
participants (4)
-
Chris McDonough -
cnk@caltech.edu -
Cynthia Kiser -
Paul Winkler