Hi,
It is odd that the index is named as
wazuh-alerts-3.x-yyyy.mm.dd. Since Wazuh
4.0.0 version the alert indices should be named as
wazuh-alerts-4.x-yyyy.mm.dd (You can check here the Wazuh template:
wazuh-template.json - v4.0.0).
Maybe some steps were missing when performing the upgrade to v4.2.0 and still affect the v4.2.5.
Regarding the error you mention, it is related to the missing Wazuh template since it seems there is some issue with the mapping. If the Wazuh template is applied properly, the
rule.mitre.technique field should be
keyword instead of
text (
rule.mitre.technique field - v4.2.5)
You can check which indices did not apply the Wazuh template by running the following query in your Elasticsearch server:
curl -k -u <user>:<pass> "https://localhost:9200/wazuh-alerts*/_mapping/field/rule.mitre.technique?pretty"All those indexes that do not have the
rule.mitre.technique as keyword have not applied the Wazuh template.
Could you perform the following query in your Elasticsearch server to get your current templates?:
curl -k -u <user>:<pass> 'https://localhost:9200/_cat/templates'Check if the wazuh template is properly loaded and matches the desired indices (we use the wazuh template to define the mapping for
wazuh-alerts-4.x-* and
wazuh-archives-4.x-* indices)
If not, as I said before, maybe some steps were missing when performing the migration. Please follow this guide:
upgrading-filebeat Once the Wazuh template is properly loaded, you should reindex the indices created without using the Wazuh template (in order to apply the proper template) or delete them (this second option will result in the data loss for those indexes without the possibility of restoring it unless you make a backup beforehand).
Keep us updated!
Best regards,
Mayte Ariza