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

[BUG] Trigger not producing alert when query is specified #448

Closed
uroskarama opened this issue Jan 18, 2023 · 2 comments
Closed

[BUG] Trigger not producing alert when query is specified #448

uroskarama opened this issue Jan 18, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@uroskarama
Copy link

uroskarama commented Jan 18, 2023

What is the bug?
When creating a Per Document monitor, and adding a Trigger with the query specified, the trigger is not triggered (Alerts are not produced).

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Create a monitor with a query named query1.
  2. Add new trigger to monitor, and in Trigger conditions dropdown select query1.
  3. In Dev tools insert a document that matches query1.
  4. Check Document findings for the monitor - document is found, but alert is not created.

What is the expected behavior?
Alerts are supposed to be produced by the trigger when query is set as condition.

What is your host/environment?
Opensearch Cluster Version - 2.4.0
Opensearch Dashboard Version - 2.4.0

Do you have any screenshots?
Screenshot from 2023-01-18 17-34-29
image

Do you have any additional context?
First screenshot is the suspected issue - for some reason the query is negated "!query[name=testq]"/
Second is the suggested fix for the issue in the code.

@uroskarama uroskarama added bug Something isn't working untriaged labels Jan 18, 2023
@lezzago
Copy link
Member

lezzago commented Feb 5, 2023

Were findings created, but not alerts? When choosing the dropdown for the trigger, was it specified to do a not of query, testq?

@AWSHurneyt
Copy link
Collaborator

Closing this issue as the bug fix was release with v2.7, and backported to older versions. Please feel free to reopen if you're still experiencing the problem, though.

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

3 participants