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

Wazuh plugin not able to recognize a manually created index pattern #2958

Closed
LegitMigue opened this issue Feb 11, 2021 · 3 comments · Fixed by #2979
Closed

Wazuh plugin not able to recognize a manually created index pattern #2958

LegitMigue opened this issue Feb 11, 2021 · 3 comments · Fixed by #2979
Assignees
Labels
request/operational Operational requests type/bug Bug issue

Comments

@LegitMigue
Copy link

LegitMigue commented Feb 11, 2021

Wazuh Elastic Rev
4.0.4 7.9.3 Wazuh APP 4016

Description
Hello team. We are facing an issue after upgrading from Wazuh ELK 3.12.1- to 4.0.4-7.9.3. wazuh-alerts-* index pattern fields quantity is not accurate. It shows 390 fields and there should be more than 800 fields. If we refresh the index pattern it will get the correct number but after a few moments, it will revert back to 390.
We do not use any custom template nor any custom setting except for the number of shards and replicas.
Multiple instances of Filebeats are running from different clusters of Wazuh managers. All of them use the same template and wazuh module.

Attached Wazuh Template:
wazuh-template.zip

Steps to reproduce

  1. Upgrade to 4.0.4-7.9.3
  2. Go to Kibana -> Index patterns -> wazuh-alerts-*

Screenshots
image (7)

@LegitMigue LegitMigue added the type/bug Bug issue label Feb 11, 2021
@MiguelCasaresRobles MiguelCasaresRobles added the request/operational Operational requests label Feb 11, 2021
@LegitMigue
Copy link
Author

The cause of the issue has been identified. It occurs when the wazuh-alerts-* index pattern is created manually. This will create the index pattern using a random ID provided by Kibana. This makes Wazuh APP not able to find the index pattern, as it will use the index pattern ID to search for the name of the index pattern.

For a workaround: Create the wazuh-alerts-* index pattern setting its custom ID with the same value as its name (wazuh-alerts-*)

@MiguelCasaresRobles MiguelCasaresRobles changed the title Incorrect number of fields in Wazuh-alerts-* index pattern Wazuh plugin not able to recognize a manually created index pattern Feb 12, 2021
@frankeros frankeros added this to the Sprint 124 - WUI milestone Feb 12, 2021
@frankeros
Copy link
Contributor

We can't prevent this action when a user creates an index pattern manually, but we could notify the user that the selected index pattern has a random ID and some actions could experiments issues in order to avoid the misknowledge about the problem

@CPAlejandro CPAlejandro self-assigned this Feb 15, 2021
@Desvelao Desvelao self-assigned this Feb 15, 2021
@Desvelao
Copy link
Member

Desvelao commented Feb 16, 2021

Errors found

Branch: fix/2958-problems-index-pattern-different-id

  • Security events table (Discover component) is not working
  • Agents preview AngularJS controller (pattern variable). Agents evolution visualization
  • GenericRequest service (pattern header)
  • Visualizations in Management > Cluster
  • Visualizations in Management > Statistics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request/operational Operational requests type/bug Bug issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants