From f6c876d0647419aaef3f87c30508d6b665ae6ab9 Mon Sep 17 00:00:00 2001 From: pengln Date: Tue, 15 Feb 2022 15:51:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9Cfilebaet=5Film=5Fenabled?= =?UTF-8?q?=E8=A2=AB=E8=AE=BE=E7=BD=AE=E4=B8=BAfalse=E5=88=99=E7=A6=81?= =?UTF-8?q?=E6=AD=A2ilm=EF=BC=8C=E8=BF=99=E6=98=AF=E4=B8=BA=E4=BA=86?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=8D=8E=E4=B8=BA=E4=BA=91=E7=9A=84ES?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playbooks/roles/filebeat/templates/filebeat.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/filebeat/templates/filebeat.yml b/playbooks/roles/filebeat/templates/filebeat.yml index 17c703a..2aaf273 100644 --- a/playbooks/roles/filebeat/templates/filebeat.yml +++ b/playbooks/roles/filebeat/templates/filebeat.yml @@ -40,7 +40,8 @@ filebeat.config.modules: reload.enabled: false # ======================= Elasticsearch template setting ======================= -#[#1002043] 通过强制filebeat注册ilm策略方式,修订意外丢失的ilm策略 +#[#1002043] 通过强制filebeat注册ilm策略方式,修订意外丢失的ilm策略。 +#如果filebaet_ilm_enabled被设置为false则禁止ilm,这是为了兼容华为云的ES setup.ilm.enabled: {{ logs[log_type]['filebaet_ilm_enabled'] | default true }} setup.ilm.policy_name: "{{ logs[log_type]['setup_ilm_policy_name'] | default('gw-nginx-ug10') }}" setup.ilm.check_exists: true