如果filebaet_ilm_enabled被设置为false则禁止ilm,这是为了兼容华为云的ES #64

Merged
pengln merged 3 commits from pengln/filebeat:master into master 2022-02-15 15:52:22 +08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 0455b1d144 - Show all commits

View File

@ -41,7 +41,7 @@ filebeat.config.modules:
# ======================= Elasticsearch template setting =======================
#[#1002043] 通过强制filebeat注册ilm策略方式修订意外丢失的ilm策略
setup.ilm.enabled: true
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