From owner-freebsd-stable@FreeBSD.ORG Mon Jan 21 13:14:06 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 5578516A41B; Mon, 21 Jan 2008 13:14:06 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.freebsd.org (Postfix) with ESMTP id 2B38813C461; Mon, 21 Jan 2008 13:14:06 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id m0LCe5G5015881; Mon, 21 Jan 2008 04:40:05 -0800 (PST) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id m0LCe5rK015880; Mon, 21 Jan 2008 04:40:05 -0800 (PST) (envelope-from david) Date: Mon, 21 Jan 2008 04:40:05 -0800 From: David Wolfskill To: Ivan Voras Message-ID: <20080121124005.GS29422@bunrab.catwhisker.org> Mail-Followup-To: David Wolfskill , Ivan Voras , freebsd-stable@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="t1CmwkW5H+10rlDA" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org Subject: Re: syslog notifications? 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: Mon, 21 Jan 2008 13:14:06 -0000 --t1CmwkW5H+10rlDA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 21, 2008 at 01:33:07PM +0100, Ivan Voras wrote: > Hi, >=20 > Before I try to reinvent the wheel, I'd like to hear are there commonly > used utilities that process syslog logs (e.g. /var/log/messages), grep > them for some regex and notify configured e-mail addresses, in real time > (as messages arrive)? I imagine something like that would either do a > "tail -f" on log files or listen as a syslog filter. This appears to resemble something of interest: freebeast(6.3-S)[18] cat /usr/ports/security//swatch/pkg-descr SWATCH - The Simple WATCHer and filter Swatch is designed to monitor system activity. Swatch requires a configuration file which contains pattern(s) to look for and action(s) to do when each pattern is found. WWW: http://swatch.sourceforge.net/ freebeast(6.3-S)[19]=20 Caveat: I've not used it, though I've seen references to it. Peace, david --=20 David H. Wolfskill david@catwhisker.org I submit that "conspiracy" would be an appropriate collective noun for cats. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --t1CmwkW5H+10rlDA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAkeUkqUACgkQmprOCmdXAD3VnwCdFevyw7oBz5FdmHCvrJgALvrI b3oAoIZ7R0xUbJcCA1clxFgrOKNQu33e =7LYv -----END PGP SIGNATURE----- --t1CmwkW5H+10rlDA--