From owner-freebsd-arch Sat Mar 23 11:57:14 2002 Delivered-To: freebsd-arch@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id D047637B41A for ; Sat, 23 Mar 2002 11:57:11 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id D4B4F5347; Sat, 23 Mar 2002 20:57:09 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Mikhail Teterin Cc: arch@FreeBSD.org Subject: Re: review request for bin/11294 References: <200203231928.g2NJSasb063343@aldan.algebra.com> From: Dag-Erling Smorgrav Date: 23 Mar 2002 20:57:09 +0100 In-Reply-To: <200203231928.g2NJSasb063343@aldan.algebra.com> Message-ID: Lines: 25 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mikhail Teterin writes: > The PR is nearly 3 years old. Could someone, please, review the proposed > improvement: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/11294 The idea is good but the implementation sucks. It should be possible to configure syslog(3) to send to a remote host, without the need for new library functions. This could be done by modifying connectlog() to check a config file (or just a symlink in /etc, malloc.conf(5)- style) and open a UDP socket instead of a Unix socket. You can set the default destination address for a datagram socket with connect(2), so vsyslog(3) doesn't need to know anything about it. Of course, this assumes that the syslog(3) packet format is the same for local and remote logging. We also need to somehow fix the problem where rapid bursts of messages will overflow the syslogd(8) socket and end up on the console instead (this forced me to disable debugging messages in the default libpam build; messages that syslogd(8) would normally have suppressed ended up on the console). I'm not sure how to fix it, though. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message