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)?