Merge pull request '修复配置文件Jinja2格式错误的问题' (#26) from pengln/filebeat:master into master
Reviewed-on: https://app.huanyuantech.com:10301/gitea/ansible-collection/filebeat/pulls/26
This commit is contained in:
commit
492f3c0066
|
@ -2,10 +2,10 @@ project_id: {{ instance_name }}
|
||||||
sublog: {{ log_type }}
|
sublog: {{ log_type }}
|
||||||
elastic_hosts: {{ filebeat_logs[log_type]['es_hosts'] }}
|
elastic_hosts: {{ filebeat_logs[log_type]['es_hosts'] }}
|
||||||
elastic_indice_name: {{ filebeat_logs[log_type]['index_prefix'] }}-{{ instance_name }}-*
|
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_username: {{ filebeat_logs[log_type]['es_user'] }}
|
||||||
elastic_password: {{ filebeat_logs[log_type]['es_passwd'] }}
|
elastic_password: {{ filebeat_logs[log_type]['es_passwd'] }}
|
||||||
{%- endif -%}
|
{% endif -%}
|
||||||
elastic_search_lifecycle: {{ filebeat_monitor_lifecycle | default(30) }}
|
elastic_search_lifecycle: {{ filebeat_monitor_lifecycle | default(30) }}
|
||||||
http_unix_sock: {{ filebeat_monitor_sock | default('./filebeat_monitor.sock') }}
|
http_unix_sock: {{ filebeat_monitor_sock | default('./filebeat_monitor.sock') }}
|
||||||
prometheus_push_gateway_url: {{ filebeat_monitor_push_gateway | default('') }}
|
prometheus_push_gateway_url: {{ filebeat_monitor_push_gateway | default('') }}
|
||||||
|
|
Loading…
Reference in New Issue