Personal tools
You are here: Home Documentation How To's How to control the size of log files

How to control the size of log files

by T. Kim Nguyen last modified Aug 17, 2010 11:29 PM

how to set up logrotate


noticed the event.log and Z2.log in client[123]/log are big - how does one set up logrotate?
2.6GB for Z2.log in client2
664 MB for event.log

you can create your own logrotate.conf and state file and set it up in cron
or make it part of the restart script I suppose

ok - good idea on the restart

i'm sure theres a zope way of doing it, there always is
yeah they say use logrotate and send zope a USR2 to get it to close the logs

http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/MaintainingZope.stx

The use of SIGUSR2 does not seem to work with ZEO clients or zeocluster installations -- only with single instances!

Related content
Document Actions
  • Print this
  • Bookmarks