From owner-freebsd-stable@FreeBSD.ORG Mon Jan 21 13:03: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 A89CC16A418 for ; Mon, 21 Jan 2008 13:03:49 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.190]) by mx1.freebsd.org (Postfix) with ESMTP id 466D113C46A for ; Mon, 21 Jan 2008 13:03:48 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: by fk-out-0910.google.com with SMTP id b27so1590158fka.11 for ; Mon, 21 Jan 2008 05:03:47 -0800 (PST) Received: by 10.82.148.7 with SMTP id v7mr12296238bud.10.1200920627165; Mon, 21 Jan 2008 05:03:47 -0800 (PST) Received: by 10.82.187.11 with HTTP; Mon, 21 Jan 2008 05:03:47 -0800 (PST) Message-ID: Date: Mon, 21 Jan 2008 15:03:47 +0200 From: "Vlad GALU" To: "Ivan Voras" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: 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:03:49 -0000 On 1/21/08, Ivan Voras wrote: > Vlad GALU wrote: > > On 1/21/08, Ivan Voras wrote: > >> Hi, > >> > >> 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. > > > > http://www.vanheusden.com/multitail/examples.html > > I'm not an expert in multitail but isn't it only for agregating log > files? I'd like something that performs an action (like sending an > e-mail) if it encounters a regex-described event in log file(s). > > > > http://www.vanheusden.com/multitail/features.html "An external tool can be executed when a regular expression matches". It's all there, Luke. -- Mahnahmahnah!