From owner-freebsd-questions Tue Jun 13 13:41:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.du.gtn.com (mail.du.gtn.com [194.77.9.57]) by hub.freebsd.org (Postfix) with ESMTP id AFF4237C0A1; Tue, 13 Jun 2000 13:41:00 -0700 (PDT) (envelope-from ticso@cicely8.cicely.de) Received: from mail.cicely.de (cicely.de [194.231.9.142]) by mail.du.gtn.com (8.11.0.Beta3/8.11.0.Beta3) with ESMTP id e5DKe9I04495 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified FAIL); Tue, 13 Jun 2000 22:40:12 +0200 (MET DST) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.2.10]) by mail.cicely.de (8.11.0.Beta1/8.11.0.Beta1) with ESMTP id e5DKe7C58847; Tue, 13 Jun 2000 22:40:08 +0200 (CEST) Received: (from ticso@localhost) by cicely8.cicely.de (8.9.3/8.9.2) id WAA02037; Tue, 13 Jun 2000 22:40:02 +0200 (CEST) (envelope-from ticso) Date: Tue, 13 Jun 2000 22:40:01 +0200 From: Bernd Walter To: David Malone Cc: Dan Nelson , Johan Kruger , freebsd-hackers@FreeBSD.ORG, FreeBSD-Questions Subject: Re: Remote syslog with a tag ? Message-ID: <20000613224001.A1980@cicely8.cicely.de> References: <20000613091107.A24675@dan.emsphone.com> <20000613110727.A22848@dan.emsphone.com> <20000613171241.A54763@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000613171241.A54763@salmon.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Tue, Jun 13, 2000 at 05:12:41PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jun 13, 2000 at 05:12:41PM +0100, David Malone wrote: > On Tue, Jun 13, 2000 at 11:07:27AM -0500, Dan Nelson wrote: > > In the last episode (Jun 13), Johan Kruger said: > > > > > > The man page says " ... and the first word in the message after the > > > date matches the program, the action specified in the action > > > field will be taken ..." > > > Now the program should the be !4.5.6.1 or one of the ones i previously > > > mentioned. > > > > That documentation is misleading, then. The hostname is definitely not > > looked at. See syslogd.c, the logmsg() function. ! is for programmnames and not hostnames. And I asume they work only localy. > I've often thought it would be nice to be able to get syslogd to > make choices based on hostname. I'm sure a patch would be easy > enough to produce, but the trick would be to produce a good syntax > fox syslog.conf. Are there any syslogds that can do this? What > syntax do they use? I have a patched version to do this. If anyone is interessted I'm producing diffs. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message