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

Alerts not working after upgrade to OS 2.15.0 #20294

Closed
gregecslo opened this issue Aug 29, 2024 · 5 comments
Closed

Alerts not working after upgrade to OS 2.15.0 #20294

gregecslo opened this issue Aug 29, 2024 · 5 comments

Comments

@gregecslo
Copy link

Hi.

After upgrade from Elasticsearch to Opensearch, my alerts stopped working. Tried also with Opensearch 2.16.0 same thing (also 2.16.0 has issues so I reverted to 2.15.0).

I found out what went wrong, after I added field in condition then it works on both opensearch versions (2.15 and 2.16), see below image.

I believe this is a bug, field could also be blank, and it worked just fine on Elasticsearch 7.10.2 ...
Untitled

  • Graylog Version: 6.0.5
  • OpenSearch Version: 2.15.0
  • MongoDB Version: 7.X
  • Operating System: Ubuntu 22.04
@gregecslo gregecslo added the bug label Aug 29, 2024
@drewmiranda-gl
Copy link
Member

There is an issue with OpenSearch 2.16, see #20119 . Though there is a work around: opensearch-project/OpenSearch#15169 (comment)

We've not received reports of issues with 2.15 though.

Do you have any applicable messages in Graylog's server.log? If you manually execute the search query configured for the event for the specific time range that you expected this to trigger, do you get results as expected?

Also to clarify, are you saying the bug is that an event will fail if an aggregation is used but the field is left empty?

I can confirm this works as I have several alerts that are configured this way (Graylog 6.0.5, OpenSearch 2.15)
image
image

The only other outstanding issue I'm aware of with alerting is https://github.com/Graylog2/graylog-plugin-enterprise/issues/7588 though not sure that is applicable here. Curious if there is anything interesting in your logs.

@gregecslo
Copy link
Author

gregecslo commented Aug 29, 2024 via email

@gregecslo
Copy link
Author

Checked logs as well.
Nothing there.

Basically this is working:

Create Events if
count(@timestamp) > 0

And this is NOT working

Create Events if
count() > 0

When I used Elasticsearch everything was just fine. When I migrated to OS 2.15.0 this started to happen and it`s definitly a bug, because it happens on 2 instances of Graylog which are totally unrelated and on 2 different locations.
One is using supported 2.15.0 and other 2.16.0. Both same Graylog 6.0.5 versions and both with SAME problems AFTER I migrated to OpenSearch.

@dennisoelkers
Copy link
Member

Hey @gregecslo,

I just tried to reproduce the issue with OS 2.16.0 and a count() > 0 event definition and it works fine for me. Is everything okay with the streams you are ingesting into? There must be something else related causing this.

Copy link
Contributor

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants