diff --git a/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 b/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 index 2476b9d1..0b71d8f5 100644 --- a/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 +++ b/ansible-wazuh-manager/templates/var-ossec-etc-ossec-server.conf.j2 @@ -361,7 +361,7 @@ {% endif %} {% endif %} {% endif %} - {% if localfile.log_format == 'json' and localfile.labels is defined %} + {% if localfile.format == 'json' and localfile.labels is defined %} {% for key, value in localfile.labels.iteritems() %} {% endfor %}