From owner-freebsd-questions@FreeBSD.ORG Mon Mar 15 04:48:24 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52FA816A4CE for ; Mon, 15 Mar 2004 04:48:24 -0800 (PST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE53E43D45 for ; Mon, 15 Mar 2004 04:48:23 -0800 (PST) (envelope-from ws+freebsd-questions@au.dyndns.ws) Received: from lillith-iv.ovirt.dyndns.ws (ppp142-192.lns1.adl2.internode.on.net [150.101.142.192]) i2FCluUK019213; Mon, 15 Mar 2004 23:17:56 +1030 (CST) X-Envelope-From: ws+freebsd-questions@au.dyndns.ws X-Envelope-To: freebsd-questions@freebsd.org Received: from [192.168.100.132] (ppp142-192.lns1.adl2.internode.on.net [150.101.142.192])i2FClp6i046960; Mon, 15 Mar 2004 23:17:51 +1030 (CST) (envelope-from ws+freebsd-questions@au.dyndns.ws) From: Wayne Sierke To: Ruben de Groot In-Reply-To: <20040315123747.GA60751@ei.bzerk.org> References: <1079352005.663.243.camel@ovirt.dyndns.ws> <20040315123747.GA60751@ei.bzerk.org> Content-Type: text/plain Message-Id: <1079354870.663.249.camel@ovirt.dyndns.ws> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 15 Mar 2004 23:17:51 +1030 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.38 X-Scanned-By: SpamAssassin 2.63 (2004-01-11) X-Scanned-By: ClamAV X-Spam-Score: 0 () cc: FreeBSD Questions Mailing List cc: Bart Silverstrim Subject: Re: log rotation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 12:48:24 -0000 On Mon, 2004-03-15 at 23:07, Ruben de Groot wrote: > On Mon, Mar 15, 2004 at 10:30:05PM +1030, Wayne Sierke typed: > > On Mon, 2004-03-15 at 10:37, Bart Silverstrim wrote: > > > Quick questions: > > > I've run across some mumblings in the ClamAV lists about Clamd not > > > logging anymore (or not scanning anymore?) when the maximum > > > logfile size is reached. Is anyone in FreeBSD running this, and if so, > > > are you using Newsyslog to rotate the logs? What are your settings > > > (how would I set it up)? > > > > > Having recently installed clamav I was interested in getting log > > rotation enabled too (5.2-RELEASE). As an experiment I set the when > > entry in newsyslog.conf to 1 hour. After the log rotation I'm not > > getting any new entries written to the logfile. I believe I saw > > somewhere someone claiming that logrotate was working for them (but > > probably on Linux). Might have to try that instead. > > Are you using syslogd for logging (LogSyslog in clamav.conf) ? > Log rotation through newsyslog is working fine here. > Yes. Here are the entries from clamav.conf: LogFile /var/log/clamd.log #LogFileUnlock #LogFileMaxSize 2M LogTime LogSyslog #LogVerbose and from newsyslog.conf: /var/log/clamd.log clamav:clamav 640 12 999 * J Anything significant in there that you can see?