From owner-freebsd-questions@FreeBSD.ORG Wed Sep 24 17:09:19 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2CC4106568C for ; Wed, 24 Sep 2008 17:09:19 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id D00148FC1F for ; Wed, 24 Sep 2008 17:09:18 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2) with ESMTP id m8OH9A20065114; Wed, 24 Sep 2008 19:09:10 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2/Submit) with ESMTP id m8OH98HR065111; Wed, 24 Sep 2008 19:09:09 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Wed, 24 Sep 2008 19:09:08 +0200 (CEST) From: Wojciech Puchar To: Laurence Mayer In-Reply-To: <48DA2333.3070007@istraresearch.com> Message-ID: <20080924190700.D65094@wojtek.tensor.gdynia.pl> References: <48DA2333.3070007@istraresearch.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Syslogd - Different Files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2008 17:09:19 -0000 > I have read the man pages: > > > > However it is very confusing what exactly to add to the syslog.conf file. I > have tried numerous variations but still no success. example on serwer blah.AAA.com +blah.AAA.com *.* -/var/log/messages *.* -/dev/ttyvb *.* @blah2.BBB.com -blah.AAA.com *.* -/var/log/remote this will log all OWN log to /var/log/messages, 12-th console and to server @blah2.BBB.com and will log all incoming messages from other hosts to /var/log/remote of course - in rc.conf don't forget to add syslogd_flags="-a IP1/mask1 -a IP2/mask2 ...."