On Wed, 19 Sep 2007 10:51:16 -0700, Dennis Peterson wrote: > micah wrote: >> I have a logrotate.d/clamav-daemon setup to rotate my clamav logs as >> shown below: >> >> >> Whereas before the logrotation the log contained a lot more clamav >> information, including what viruses were caught. >> >> Is there a better way to rotate the log? >> >> > Are you sending clamd a SIGHUP signal after snatching its logfile away?
The logrotate.d/clamav does this: 1. Moves clamav.log to clamav.log.1 2. runs: /etc/init.d/clamav-daemon reload-log, which is effectively a kill -1 (ie. HUP). I've got the following associated config lines in clamd.conf: LogSyslog false LogFacility LOG_LOCAL6 LogClean false LogVerbose false LogFile /var/log/clamav/clamav.log LogTime true LogFileUnlock false LogFileMaxSize 0 Micah _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html