Merge pull request '修复 pipeline 变量引用错误的bug' (#31) from pengln/filebeat:master into master

Reviewed-on: https://app.huanyuantech.com:10301/gitea/ansible-collection/filebeat/pulls/31
This commit is contained in:
pengln 2021-12-07 10:14:52 +08:00
commit 3d3084dcbe
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ output.elasticsearch:
index: "{{ logs[log_type]['index_prefix'] }}-{{ instance_name }}-%{[sublog]}-%{+yyyy.MM.dd}" index: "{{ logs[log_type]['index_prefix'] }}-{{ instance_name }}-%{[sublog]}-%{+yyyy.MM.dd}"
{% endif -%} {% endif -%}
{% if 'pipeline' in logs[log_type] and logs[log_type]['pipeline'] -%} {% if 'pipeline' in logs[log_type] and logs[log_type]['pipeline'] -%}
pipeline: "logs[log_type]['pipeline']" pipeline: "{{ logs[log_type]['pipeline'] }}"
{% endif -%} {% endif -%}
{% if 'es_user' in logs[log_type] and 'es_passwd' in logs[log_type] -%} {% if 'es_user' in logs[log_type] and 'es_passwd' in logs[log_type] -%}
username: {{ logs[log_type]['es_user'] | default('') }} username: {{ logs[log_type]['es_user'] | default('') }}