From owner-freebsd-stable@FreeBSD.ORG Thu Aug 21 19:42:49 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 109451065684 for ; Thu, 21 Aug 2008 19:42:49 +0000 (UTC) (envelope-from mi+mill@aldan.algebra.com) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by mx1.freebsd.org (Postfix) with ESMTP id DE3808FC0A for ; Thu, 21 Aug 2008 19:42:48 +0000 (UTC) (envelope-from mi+mill@aldan.algebra.com) Received: (qmail 22298 invoked from network); 21 Aug 2008 19:42:48 -0000 Received: from aldan.algebra.com (HELO [127.0.0.1]) (mi@[216.254.65.224]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 21 Aug 2008 19:42:48 -0000 Message-ID: <48ADC537.8030807@aldan.algebra.com> Date: Thu, 21 Aug 2008 15:42:47 -0400 From: Mikhail Teterin User-Agent: Thunderbird 2.0.0.16 (X11/20080707) MIME-Version: 1.0 To: David Wolfskill , freebsd-stable@freebsd.org References: <48ADA81E.7090106@aldan.algebra.com> <20080821183130.GQ801@bunrab.catwhisker.org> In-Reply-To: <20080821183130.GQ801@bunrab.catwhisker.org> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: feeding log-messages (Re: machine hangs on occasion - correlated with ssh break-in attempts) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2008 19:42:49 -0000 David Wolfskill ΞΑΠΙΣΑΧ(ΜΑ): > While the amount of work involved was assuredly greater in that case > than in yours, those of us who were actually building and running the > relays in question were very unsurprised when Postfix performance > improved significantly following a redesign of the application, so > that /var/log/maillog was written by syslogd(8) and the Perl script > was effectively fed via "tail -F". In my setup, syslogd does both -- append the message to the appropriate log-file (in this case -- /var/log/auth.log) and feed it to the script's stdin. From syslogd.conf: auth.info;authpriv.info /var/log/auth.log auth.info;authpriv.info |/opt/sbin/auth-log-watch "tail -F" seems just wrong :-) -mi