-
Notifications
You must be signed in to change notification settings - Fork 197
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
Infinite loop trying to check alerts index patterns after reinstalling Wazuh indexer #4293
Comments
ResearchHow to replicate
Digging the causeRemove and reinstall the Wazuh indexer causes the previous data is removed. When the plugin health check finish and redirects to It is a little strange that any data is returned from The
Other side effects caused by this situationPlugin related to the plugin platform fails:
Solutions
|
Researching a fixI was researching because the We could replace or adapt the use of
but this doesn't solve the problem with the malfunction of other plugins. To fix them, it is required to restart the Wazuh dashboard service. Moreover, the Wazuh plugin could have more problems because of trusting to Because of this issue appears in a situation whose use flow is not expected (by others core plugins), and this causes an exceptional malfunction of the |
ResearchThe Digging the search query in
|
Fixing the loop in the Wazuh pluginKnowing the loop is caused by exceptional circumstances with the field mapping of the index that has the saved objects and the index patterns' saved objects are created successfully in the health check when the user navigates in the Wazuh plugin, the current logic seems to be valid. Anyways we could include some mechanism to stop the loop in the Wazuh plugin under this circumstance. The health check of Wazuh plugin seems to be working without problems. There are checks that validate the existence of index patterns related to Wazuh. These validations pass without problems. For another hand, the Possible approaches
|
SolutionI added a verification in each check of health check related to the index patterns. Solved in #4373. |
I tested in an Elastic stack environment and I could replicate the issue. I marked the PR to be backported to the development branches of the plugin for Kibana. |
Description
During the manual tests for the Wazuh indexer (
v4.3.5-rc1
), I noticed a strange error when reinstalling the Wazuh indexer. The Wazuh dashboard would try to check alerts index patterns until its service would restart.Preconditions
Steps to reproduce
Screenshots
Screenshare.-.2022-06-28.1_24_59.PM.mp4
This issue was detected here: wazuh/wazuh#13994 (comment)
The text was updated successfully, but these errors were encountered: