From 0d5b4c6f8210d53d5ff49d02837e3220a503ab5d Mon Sep 17 00:00:00 2001 From: pengln Date: Mon, 6 Dec 2021 16:49:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6Jinja2=E6=A0=BC=E5=BC=8F=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playbooks/roles/filebeat/templates/filebeat_monitor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/filebeat/templates/filebeat_monitor.yaml b/playbooks/roles/filebeat/templates/filebeat_monitor.yaml index c78f277..2bf592e 100644 --- a/playbooks/roles/filebeat/templates/filebeat_monitor.yaml +++ b/playbooks/roles/filebeat/templates/filebeat_monitor.yaml @@ -2,10 +2,10 @@ project_id: {{ instance_name }} sublog: {{ log_type }} elastic_hosts: {{ filebeat_logs[log_type]['es_hosts'] }} elastic_indice_name: {{ filebeat_logs[log_type]['index_prefix'] }}-{{ instance_name }}-* -{%- if filebeat_logs[log_type]['es_user'] and filebeat_logs[log_type]['es_passwd'] -%} +{% if filebeat_logs[log_type]['es_user'] and filebeat_logs[log_type]['es_passwd'] -%} elastic_username: {{ filebeat_logs[log_type]['es_user'] }} elastic_password: {{ filebeat_logs[log_type]['es_passwd'] }} -{%- endif -%} +{% endif -%} elastic_search_lifecycle: {{ filebeat_monitor_lifecycle | default(30) }} http_unix_sock: {{ filebeat_monitor_sock | default('./filebeat_monitor.sock') }} prometheus_push_gateway_url: {{ filebeat_monitor_push_gateway | default('') }} -- 2.40.1