修订模板名称和模板模式不一致的问题

This commit is contained in:
pengln 2022-02-18 14:19:39 +08:00
parent c4a5e690e2
commit 431fd883d0
1 changed files with 2 additions and 2 deletions

View File

@ -42,9 +42,9 @@ filebeat.config.modules:
# ======================= Elasticsearch template setting ======================= # ======================= Elasticsearch template setting =======================
#[#1002043] 通过强制filebeat注册ilm策略方式修订意外丢失的ilm策略。 #[#1002043] 通过强制filebeat注册ilm策略方式修订意外丢失的ilm策略。
#如果filebaet_ilm_enabled被设置为false则禁止ilm这是为了兼容华为云的ES #如果filebaet_ilm_enabled被设置为false则禁止ilm这是为了兼容华为云的ES
setup.ilm.enabled: {{ logs[log_type]['filebaet_ilm_enabled'] }} setup.ilm.enabled: false
setup.ilm.policy_name: "{{ logs[log_type]['setup_ilm_policy_name'] | default('gw-nginx-ug10') }}" setup.ilm.policy_name: "{{ logs[log_type]['setup_ilm_policy_name'] | default('gw-nginx-ug10') }}"
setup.ilm.check_exists: true setup.ilm.check_exists: false
setup.template.name: "{{ logs[log_type]['template_name'] }}" setup.template.name: "{{ logs[log_type]['template_name'] }}"
setup.template.pattern: "{{ logs[log_type]['template_pattern'] }}" setup.template.pattern: "{{ logs[log_type]['template_pattern'] }}"