diff --git a/roles/wazuh/ansible-filebeat-oss/templates/filebeat.yml.j2 b/roles/wazuh/ansible-filebeat-oss/templates/filebeat.yml.j2 index 86066f3c..82379778 100644 --- a/roles/wazuh/ansible-filebeat-oss/templates/filebeat.yml.j2 +++ b/roles/wazuh/ansible-filebeat-oss/templates/filebeat.yml.j2 @@ -16,7 +16,10 @@ setup.ilm.enabled: false # Send events directly to Opensearch output.elasticsearch: - hosts: {{ filebeat_output_indexer_hosts | to_json }} + hosts: +{% for item in filebeat_output_indexer_hosts %} + - {{ item }}:9700 +{% endfor %} {% if filebeat_security %} username: {{ indexer_security_user }}