
To update the pipelines and the template (since you've modified it), you should execute the following commands:
Hello Matthias,
I noticed that in your configuration, the order of processors defining the index pattern’s name could lead to unintended results. Specifically, the processor setting the index name to the default one comes after the conditional processor. Reversing this order is advisable. Otherwise, all documents passing through the pipeline will be stored in the default index instead of the intended ‘wazuh-vpn-*’ index. Here’s the relevant part of your configuration:
{ "date_index_name": { "field": "timestamp", "date_rounding": "d", "index_name_prefix": "wazuh-vpn-*", "index_name_format": "yyyy.MM.dd", "ignore_failure": false, "if": "ctx.rule?.id == '201010'" } }, { "date_index_name": { "field": "timestamp", "date_rounding": "d", "index_name_prefix": "{{fields.index_prefix}}", "index_name_format": "yyyy.MM.dd", "ignore_failure": false } }Additionally, the conditional processor’s prefix to set the index name to ‘wazuh-vpn-‘ includes an asterisk. It’s recommended to remove it to prevent index names like ‘wazuh-vpn-2024.05.15’. Instead, use the ‘wazuh-vpn-‘ prefix to ensure index names like ‘wazuh-vpn-2024.05.15’ (without the asterisk).
To update the template file that Filebeat uses in its configuration, you can execute the following command:
filebeat setup --index-managementRegards!