[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] how to search for exact word patterns
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] how to search for exact word patterns
- From: Greg Hubbard <glh.forums (at) gmail.com>
- Date: Fri, 18 Sep 2009 12:25:21 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=nCUuEvVS1jXkYHxxXTsnx8gRWSi5wGq+mB4Pv4llVmI=; b=P7Q9hfzTMHvbRiZSmvXJYGlO177UEUvGQxC65YzHzwvBC2LRpm5GWQC1NVnUz7p5cn X73XPTW5syVou1bHPDFSR5NDS/43PLW2UIbr+Y6GZ8uPeiE5qft8IAE4yT+qm83eVchY 8JlfviXtsgxA8qsY4oYnfwqNWb2VD2faQdsdU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=CO8+1MXhhIoprk5IBF4REDaxlnQp7mc5DlkjcniHttjjGadtL8btE9Xh3vRL4oF2fd k/vNiwu9xi81LKjEbjphchkiQDTuSQrglB6m5H783BO+dPawcEFW7YZQOv7KGu3SrUXx kxRsniEWLyWkQmQBqz+bHzBKdJdXWCg7BLCq0=
- References: <645D8508A770D04F91F427D76401D38203FDCB8E (at) smtp3.cjh.org>
Try making it a regex (with % prefix) instead of "simple" expression.
On 9/18/09, Camelia Anghel <canghel (at) cjh.org> wrote:
>
> Did that but it look for all messages that have one of the 3 words
>
> Thanks anyway
>
> Camelia
>
>
>
> -----Original Message-----
> *From:* Josh Luthman [mailto:josh (at) imaginenetworksllc.com]
> *Sent:* Friday, September 18, 2009 11:22 AM
> *To:* hobbit (at) hswn.dk
> *Subject:* Re: [hobbit] how to search for exact word patterns
>
>
>
> I think it's:
>
> HOST=my.host.com
> LOG /var/log/messages "out of memory" COLOR=red
>
> Not tested.
>
> Josh Luthman
> Office: 937-552-2340
> Direct: 937-552-2343
> 1100 Wayne St
> Suite 1337
> Troy, OH 45373
>
> "When you have eliminated the impossible, that which remains, however
> improbable, must be the truth."
> --- Sir Arthur Conan Doyle
>
> On Fri, Sep 18, 2009 at 9:26 AM, Camelia Anghel <canghel (at) cjh.org> wrote:
>
>
> Hello all,
> I am trying to set up an alert to search for exact word patterns in
> /var/log/messages. For example: "Out of Memory"
>
> Any help would be appreciated.
>
> Thanks,
> Camelia
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>
--
Disclaimer: 1) all opinions are my own, 2) I may be completely wrong, 3) my
advice is worth at least as much as what you are paying for it, or your
money cheerfully refunded.