[
https://issues.apache.org/jira/browse/KARAF-6355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16939141#comment-16939141
]
Jean-Baptiste Onofré commented on KARAF-6355:
---------------------------------------------
The problem is not in the mail alerter, but more on the checked. It will be
fixed with the refactoring of the checker (currently on the way): you will be
able to have fined tuning of checked using yaml configuration. Furthermore, the
alert store will be improved as well.
> improve usage for "log collector" + "mail alerter" usecases
> -----------------------------------------------------------
>
> Key: KARAF-6355
> URL: https://issues.apache.org/jira/browse/KARAF-6355
> Project: Karaf
> Issue Type: Bug
> Components: decanter
> Affects Versions: decanter-2.2.0
> Reporter: Markus Rathgeb
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Fix For: decanter-2.3.0
>
>
> 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...
--
This message was sent by Atlassian Jira
(v8.3.4#803005)