Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generates too much findings(findings count = rules count) for one trigerred rule when exists multiple alerts(each for specific rule) in detector config #1113

Open
humster88 opened this issue Jun 28, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@humster88
Copy link

Hello.
I'm seeing this problem.
I tried versions 2.13.0, 2.14.0, 2.15.0, it appears everywhere.
I'm using docker-compose deployment.
There is one detector, with 3 rules and 3 alerts attached (each alert has its own rule selected in the trigger).
When any rule is triggered, one alert is generated, which is logical.
But besides this, 3 finding are generated, all of them belong to the same rule (which generated the trigger).
When viewing details, each finding refers to the same document from the index.
If i leave one alert in the detector, triggered by any rule, then when triggered everything is correct, one finding, one alert.
If i remove alerts from the detector altogether, then everything is fine with finding.

Originally posted by @humster88 in #824 (comment)

@humster88 humster88 changed the title generates too more findings(findings count = rules count) for one trigerred rule when exists multiple alerts(each for specific rule) in detector config generates too much findings(findings count = rules count) for one trigerred rule when exists multiple alerts(each for specific rule) in detector config Jun 28, 2024
@dblock
Copy link
Member

dblock commented Jul 15, 2024

[Catch All Triage - 1, 2, 3]

@dblock dblock added bug Something isn't working and removed untriaged labels Jul 15, 2024
@daimoniac
Copy link

I can confirm this issue.

We have a detector that generates 3 findings per matching document. When removing all or all except one alert triggers, this is reduced to 1 finding.

@nishtham-amazon
Copy link

This behavior is expected. Detector findings are generated based on the rules defined at the detector level. If a detector has x rules and y triggers, findings will be generated for each of the y triggers across the x rules. Thus, the 3 findings for 3 triggers defined. Depending on the associated alert rules, if only one alert rule matches a finding, a single alert will be triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants