From owner-freebsd-questions@FreeBSD.ORG Thu Aug 26 13:29:03 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 82D7C16A4CE for ; Thu, 26 Aug 2004 13:29:03 +0000 (GMT) Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E16043D49 for ; Thu, 26 Aug 2004 13:29:03 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from movens.plus.com ([80.229.231.20] helo=[127.0.0.1]) by ptb-relay03.plus.net with esmtp (Exim) id 1C0KJG-000INc-Ka for freebsd-questions@freebsd.org; Thu, 26 Aug 2004 13:29:02 +0000 Message-ID: <412DE60C.2080908@freebsd.org> Date: Thu, 26 Aug 2004 14:30:52 +0100 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (Windows/20040815) X-Accept-Language: en-gb, en-us MIME-Version: 1.0 To: FreeBSD Questions References: <412DCFB7.1000502@freebsd.org> <20040826125355.GA48259@bsd.net> In-Reply-To: <20040826125355.GA48259@bsd.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Logging router errors using syslog 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: Thu, 26 Aug 2004 13:29:03 -0000 Martin Hasenbein wrote: > On 26 Aug 2004 (13:55:35) [1093521335], Mark Ovens wrote: > > Hi Mark, > >> The router has been set up to log to the local2 facility and I've added >> these lines to the end of /etc/syslog.conf: >> >> !* >> +P650R-31 >> local2 /var/log/router/zyxel > >> Can anyuone suggest why this is not working? > > how did you start syslogd? If it was started from /etc/rc.conf > without modifying the flags for syslogd, it won't work. > The default-flag for syslogd is > > syslogd_flags="-s" > >>From the man-page: > > -s Operate in secure mode. Do not log messages from remote > machines. If specified twice, no network socket will be opened > at all, which also disables logging to remote machines. > > > You have to disable this option and restart syslogd. > Thanks, yes, I was. I've changed it and restarted without ''-s'' but it still doesn't appear to be logging anything - I configured the router to log everything so the file should grow quite quickly. Do you have any other idea(s)? Regards, Mark > > Ciao, > -Martin. >