Hello,
We are encountering an issue with the Filebeat setup process while attempting to upgrade our Wazuh system from version 4.14.0 to 4.14.1.
Below are the commands we ran and the resulting error output:
# filebeat setup --pipelines
# filebeat setup --index-management -E output.logstash.enabled=false
Loaded Ingest pipelines
lifecycle policy loading not enabled.
Exiting: error loading template: failed to load template: couldn't load template: 400 Bad Request: {"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[1:2] [index_template] unknown field [order]"}],"type":"x_content_parse_exception","reason":"[1:2] [index_template] unknown field [order]"},"status":400}
In prior attempts, we diagnosed this error as an incompatibility with the Filebeat index template (Legacy vs. Composable Templates). We tried removing the order: 0 field from the /etc/filebeat/wazuh-template.json file, but the issue persists (or [if you are now getting the new error: the error changed to unknown field [mappings] after removing order]).
Relevant Wazuh Documentation: https://documentation.wazuh.com/current/upgrade-guide/upgrading-central-components.html#:~:text=Filebeat%20i%C3%A7in%20new,%23
Related External Discussion: https://discuss.elastic.co/t/unkown-key-in-elasticsearch-template-elastic-stack-8-3-3/338100
Given that our Indexer version appears to require the Composable Template structure, what definitive steps should we take to ensure Filebeat correctly loads the template for our environment?
Thank you for your assistance.
Best regards,
Emre