-
Notifications
You must be signed in to change notification settings - Fork 529
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] Rules being duplicated when updated #3383
Comments
@zkink, thanks for opening this bug! Do you mind opening it in https://github.com/elastic/kibana/issues as it relates to the rules management in kibana. This way you will be able to easier track the resolution. Thank you! |
Hi @zkink. Thanks for reporting this. ++ to recreating this as a Kibana ticket. It's related to Rule Management and not to the Detection Rules themselves, I can follow though better there. Feel free to ping me directly in a new ticket there. Having said that, could you please let us know the following:
If you can reproduce the issue again, you can get the data for both rules by navigating to the Dev Tools and making the request: GET .kibana_alerting_cases/_search
{
"_source": [
"alert.params.ruleId"
],
"query": {
"bool": {
"must": [
{
"term": {
"type": "alert"
}
},
{
"match_phrase": {
"alert.name": "Abnormal Process ID or Lock File Created"
}
}
]
}
}
} and the response should look like: {
# ... other fields
"hits": {
# ... other fields
"max_score": 5.1785355,
"hits": [
{
"_index": ".kibana_alerting_cases_8.13.0_001",
"_id": "alert:b1137f12-4b54-4984-b09b-0188bba052b4", // <---- instance id
"_score": 5.1785355,
"_source": {
"alert": {
"params": {
"ruleId": "c138e3cd-4cae-45a3-bdba-dc45b4ebf700" // <---- rule_id
}
}
}
}
]
}
} |
Moved to Kibana Repo per request |
Describe the bug
A clear and concise description of what the bug is.
When updating rules, instances appear to be duplicating some rules as part of the update. Within our cluster, we can see the same rule exist multiple times. Both rules appear to be prebuilt rules that have been created by the author "Elastic". This is a few example rules where this can be seen to have occurred.
Example Rules:
Enumeration of Kernel Modules
Rule ID 1: aeffacb0-199f-11ee-be89-1b8cf30adee4
Rule ID 2: 2d8aaff0-4027-11ee-bc86-b1f97eb72d5d
Abnormal Process ID or Lock File Created
Rule ID 1: 1b6df8c0-2599-11ee-8571-99b83d216ac8
Rule ID 2: d76ede10-402c-11ee-bc86-b1f97eb72d5d
For each of these rules (there are a few more), these rules have one show up in "Elastic Rules" and one show up in "Custom Rules". It appears that when rule updates get performed, they sometimes are being put into a custom rule and the elastic rule has stayed unmodified.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
What would be expected is for rules to update rather than creating a new record/ID.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
This appears to be a long-term issue that has been intermittent. It appears only sometimes when rules are updated, and looking in a different instance, a different rule could be duplicated. When looking, it appears to be randomly occurring rather than occurring for the same rule each time.
The text was updated successfully, but these errors were encountered: