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?
Updating a detector (PUT request via API) with only custom rules results in an error (kotlin.collections.EmptyMap cannot be cast to kotlin.collections.MutableMap).
How can one reproduce the bug?
Create detector only containing custom rules via API. Update that detector in any way (see example below).
What is the expected behavior?
No error if no pre-packaged rules are specified.
What is your host/environment?
OS: Ubuntu 22.04
Version 2.12
Plugins Security Analytics Plugin
Do you have any screenshots?
No, but i have the following example:
Create detector (you have to customize this a bit to your setup, ie. replacing the detector_type and indices array):
The update will work, but only as long as there is content in the "pre_packaged_rules" section. Remove them and you will see a 500 error with the above stated error. As a workaround you can include pre-packaged rules.
Do you have any additional context?
The text was updated successfully, but these errors were encountered:
agoerl
changed the title
[BUG] Newly created detector definition breaks OpenSearch detectors alltogether
[BUG] It is not possible to update a detector containing only custom rules
Mar 27, 2024
What is the bug?
Updating a detector (PUT request via API) with only custom rules results in an error (kotlin.collections.EmptyMap cannot be cast to kotlin.collections.MutableMap).
How can one reproduce the bug?
Create detector only containing custom rules via API. Update that detector in any way (see example below).
What is the expected behavior?
No error if no pre-packaged rules are specified.
What is your host/environment?
Do you have any screenshots?
No, but i have the following example:
Create detector (you have to customize this a bit to your setup, ie. replacing the detector_type and indices array):
Then update that detector:
The update will work, but only as long as there is content in the "pre_packaged_rules" section. Remove them and you will see a 500 error with the above stated error. As a workaround you can include pre-packaged rules.
Do you have any additional context?
The text was updated successfully, but these errors were encountered: