Closed derFunk closed 6 years ago
I was able to work around what I described above by setting alerts on a new stream which dedicatedly only log errors.
Then I'm getting the current log message which caused the alert (obviously because there's not happening a lot inside stream (?) ).
I'm not sure if this is by design or a bug, but it seems like when I use a stream with a lot of messages, the backlog message filter is not correctly set to the time where the log message occured which triggered the alarm.
Is my setup described above not what this plugin should be able to handle? (Have lots of log message, then set a condition to a field and when it's met: alert).
That the causing log message is not sent, can it be a timezone issue? (we're CEST/UTC+2).
Maybe it's a wrong filter when calling getMatchingMessage()
? (I just had a quick look).
@derFunk Can you confirm this issue is happening in the latest release please?
Yep, but I'll need some time to put my hands back on it, I'll report back as soon as I have a result. Thanks!
Awesome, thanks @derFunk . Please reopen the issue if you are able to reproduce in the latest version.
This is my alert condition:
Configuration: Alert is triggered when the field level has a higher max value than 499 in the last minute. Grace period: 0 minutes. Including last 5 messages in alert notification. Configured to repeat notifications.
These are my notification settings:
This is the log message with
level: 500
I want to see in Slack:This is what I see in Slack: Not the log message which caused the alert, but one before or after it.
Is it a config issue or a bug?