From a48bfc9e1f637f031f20d01689c9615035dd61e8 Mon Sep 17 00:00:00 2001 From: pengln Date: Tue, 15 Feb 2022 15:55:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=A7=E6=80=A5=E4=BF=AE=E5=A4=8D=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=A8=A1=E6=9D=BF=E6=96=87=E4=BB=B6=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playbooks/roles/filebeat/defaults/main.yml | 1 + playbooks/roles/filebeat/templates/filebeat.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/filebeat/defaults/main.yml b/playbooks/roles/filebeat/defaults/main.yml index 4a0d9d3..d1ad648 100644 --- a/playbooks/roles/filebeat/defaults/main.yml +++ b/playbooks/roles/filebeat/defaults/main.yml @@ -14,6 +14,7 @@ filebeat_output_works: 1 filebeat_gid: 1801 filebeat_uid: 1801 filebeat_older: 24h +filebaet_ilm_enabled: yes filebeat_logs: gateway: diff --git a/playbooks/roles/filebeat/templates/filebeat.yml b/playbooks/roles/filebeat/templates/filebeat.yml index 2aaf273..5a0115a 100644 --- a/playbooks/roles/filebeat/templates/filebeat.yml +++ b/playbooks/roles/filebeat/templates/filebeat.yml @@ -42,7 +42,7 @@ filebeat.config.modules: # ======================= Elasticsearch template setting ======================= #[#1002043] 通过强制filebeat注册ilm策略方式,修订意外丢失的ilm策略。 #如果filebaet_ilm_enabled被设置为false则禁止ilm,这是为了兼容华为云的ES -setup.ilm.enabled: {{ logs[log_type]['filebaet_ilm_enabled'] | default true }} +setup.ilm.enabled: {{ logs[log_type]['filebaet_ilm_enabled'] }} setup.ilm.policy_name: "{{ logs[log_type]['setup_ilm_policy_name'] | default('gw-nginx-ug10') }}" setup.ilm.check_exists: true -- 2.40.1