From owner-freebsd-fs@FreeBSD.ORG Sun Jun 13 00:36:37 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6837B106567C for ; Sun, 13 Jun 2010 00:36:37 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta04.emeryville.ca.mail.comcast.net (qmta04.emeryville.ca.mail.comcast.net [76.96.30.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4B2A38FC19 for ; Sun, 13 Jun 2010 00:36:36 +0000 (UTC) Received: from omta23.emeryville.ca.mail.comcast.net ([76.96.30.90]) by qmta04.emeryville.ca.mail.comcast.net with comcast id VBal1e0011wfjNsA4CccPw; Sun, 13 Jun 2010 00:36:36 +0000 Received: from koitsu.dyndns.org ([98.248.46.159]) by omta23.emeryville.ca.mail.comcast.net with comcast id VCcb1e0053S48mS8jCcb8t; Sun, 13 Jun 2010 00:36:36 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 32A9C9B418; Sat, 12 Jun 2010 17:36:35 -0700 (PDT) Date: Sat, 12 Jun 2010 17:36:35 -0700 From: Jeremy Chadwick To: hiroshi@soupacific.com Message-ID: <20100613003635.GA60012@icarus.home.lan> References: <4BD0E432.1000108@soupacific.com> <20100423061521.GC1670@garage.freebsd.pl> <4BD17B0D.5080601@soupacific.com> <4C10B526.4040908@soupacific.com> <20100612104336.GA2253@garage.freebsd.pl> <4C1372E0.1000903@soupacific.com> <20100612142311.GF2253@garage.freebsd.pl> <4C139F9C.2090305@soupacific.com> <86iq5oc82y.fsf@kopusha.home.net> <4C14215D.9090304@soupacific.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C14215D.9090304@soupacific.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-fs@freebsd.org, Pawel Jakub Dawidek Subject: Re: FreeBSD 8.1 and HAST X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jun 2010 00:36:37 -0000 On Sun, Jun 13, 2010 at 09:07:57AM +0900, hiroshi@soupacific.com wrote: > > It would be good to have all.log enabled in newsyslog.conf and provide the > > output from there so all lines are in one log and it is clear which message > > appeared earlier. Also the logs from the primary could be useful too. > > Could you tell me how to modify newsyslog.conf to one log file ? He meant syslog.conf. The procedure: - Edit /etc/syslog.conf and uncomment the line that looks like this: #*.* /var/log/all.log - touch /var/log/all.log - chmod 600 /var/log/all.log - chown root:wheel /var/log/all.log - /etc/rc.d/syslogd reload Going forward you should have a file called /var/log/all.log that contains literally all syslog data. newsyslog is already set up on FreeBSD to automatically rotate this log file at midnight every day, so there's no need to mess with that piece. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |