Skip to content

wazuh-template.json reset on container restart prevents customisation of indices and datatypes #2022

@matt-j-griffin

Description

@matt-j-griffin

Since the fix to #1966, the wazuh-template.json file is being reset every time the Wazuh container is started. This behaviour makes it impossible to persist custom modifications.

According to the Wazuh documentation on indexer indices and datatypes, these templates should be customisable to allow the addition of new indices and datatypes. At present, however, any edits to /etc/filebeat/wazuh-template.json are overwritten on restart, which contradicts that expectation.

I’ve been able to bypass this by mounting my custom template separately and pointing Filebeat to it via filebeat.yml:

setup.template.json.path: "/etc/filebeat/custom-template.json

Could Wazuh provide an officially supported way to customise or persist changes to wazuh-template.json (e.g. document the intended mechanism)?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions