You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the bug?
Bucket alert is generated without id. Once the search is executed against the given alert index by using the terms query and by specifying the id we are getting an empty response although the bucket level alert exist. This was noticed on Security Analytics plugin during integration testing, once the bucket level rule monitor has been created as part of a detector.
How can one reproduce the bug?
Steps to reproduce the behavior:
Create a bucket level monitor on the given index with appropriate rules attached to it
Execute the bucket level monitor
See that the source object of alerts doesn't contain id
Do a terms search by using doc id and verify that the alert can not be retrieved
What is the expected behavior?
Alert source object should have the same id like doc id and should be returned once the terms query is being executed
GET /_cat/indices?expand_wildcards=all
Response: yellow open .opensearch-sap-test_windows-alerts v4Z4wUBVTSueQyDyaHoFWQ 1 1 2 0 12.7kb 12.7kb
After investigation @eirsep and me that we did, we figured that the bucket level alert id was omitted intentionally. That's why we decided just to change the parameter we are using in term query when fetching the alerts by their ids. We are going to use the doc _id which is in the case of doc level alerts same as an alert id.
What is your host/environment?
OS: [e.g. iOS]
Version [e.g. 22]
Plugins
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered:
What is the bug?
Bucket alert is generated without id. Once the search is executed against the given alert index by using the terms query and by specifying the id we are getting an empty response although the bucket level alert exist. This was noticed on Security Analytics plugin during integration testing, once the bucket level rule monitor has been created as part of a detector.
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
Alert source object should have the same id like doc id and should be returned once the terms query is being executed
Response: yellow open .opensearch-sap-test_windows-alerts v4Z4wUBVTSueQyDyaHoFWQ 1 1 2 0 12.7kb 12.7kb
Response:
..."hits": { "total": { "value": 2, "relation": "eq" }, "max_score": 1.0, "hits": [ { "_index": ".opensearch-sap-test_windows-alerts", "_id": "N9F4ooUBlcppUgifPbJU", "_score": 1.0, "_routing": "JNF4ooUBlcppUgifL7JY", "_source": { "id": "", // The missing ID "version": -1, "monitor_id": "JNF4ooUBlcppUgifL7JY",...
Response:
{ "from":0, "size":10000, "query":{ "terms":{ "id":[ "N9F4ooUBlcppUgifPbJU" ], "boost":1.0 } }, "version":true, "seq_no_primary_term":true, "sort":[ { "id":{ "order":"asc" } } ] }
{ "took": 1, "timed_out": false, "_shards": { "total": 1, "successful": 1, "skipped": 0, "failed": 0 }, "hits": { "total": { "value": 0, "relation": "eq" }, "max_score": null, "hits": [] } }
After investigation @eirsep and me that we did, we figured that the bucket level alert id was omitted intentionally. That's why we decided just to change the parameter we are using in term query when fetching the alerts by their ids. We are going to use the doc _id which is in the case of doc level alerts same as an alert id.
What is your host/environment?
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: