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 nguyen — published Jul 21, 2009 12:45 PM, last modified Aug 16, 2016 10:50 AM
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

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