[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to write regular expression in client-local.cfg
- To: <hobbit (at) hswn.dk>
- Subject: How to write regular expression in client-local.cfg
- From: "Samuel Cai" <Samuel.Cai (at) ehealth-china.com>
- Date: Mon, 21 Jul 2008 01:25:28 -0700
- Thread-index: AcjrC1TXW84Op9GjQp+22c/KxOEqLA==
- Thread-topic: How to write regular expression in client-local.cfg
Hi,
We want to monitor important error in a log file, but configuring
trigger part in client-local.cfg doesn't work.
For example, there are two types of errors we want to catch:
OutOfMemoryError and StackOverFlowError, then we configure:
[our server]
log: /var/log/server.log:10240
trigger Error
This doesn't work, Hobbit client still reports last 10240 data, if the
error is outside of that range, we just missed it.
I think this is due to wrongly write the trigger expression, could any
one help on this?
Btw, I sent similar question before, this one should be more clearer.
Thanks,
Samuel Cai