Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
decanter-2.2.0
-
None
-
None
Description
If you would like to be informed per mail about special log events (e.g. log level warn) the current implementation does not work as (perhaps) expected.
Assume you would like to be informed about every log message of level WARN.
The current implementation will notify you about the first log message of level WARN and the next alert that is triggered is for a log message not using the WARN level.
I would like to be informed about every WARN log message and not about any other (so not loosing multiple WARN messages that are followed immediately and not informed about a log message that is not WARN).
Another improvement would about the combination of multiple patterns.
E.g. keep me informed about
type = log
priority = WARN | ERROR
not ( loc.class = Foo.class & loc.method = magic)
Perhaps we could reuse https://osgi.org/javadoc/r2/org/osgi/framework/Filter.html
log.warn.filter = "(&((|(priority=WARN)(priority=ERROR))(loc.class=Foo.class)(loc.method=magic)))"
(do not assume the filter above is correct)
Perhaps we could already reuse the current implementation and its match method.
Just need to think about substring matching...
Attachments
Issue Links
- is duplicated by
-
KARAF-5741 Improve Decanter alerting by supporting time series and multi-attributes
- Resolved
- is related to
-
KARAF-5482 Able to control checker throttling or combine the alert key with another property
- Resolved
-
KARAF-6368 Add a property to define alert recoverable pattern
- Resolved