Filebeat-7.14.2 cannot automatically create index aliases

output.elasticsearch:
hosts: ["http://:9200"]
indices:
- index: "ai-service-log-test-%{+yyyy.MM}"
when.contains:
tags: "ai-service"
username: "XXXX"
password: "XXXXXXX!"
setup.ilm.enabled: true
setup.ilm.rollover_alias: "ai-service-log-test"
setup.template.name: "ai-service-log-test-template"
setup.template.pattern: "ai-service-log-test-*"
setup.template.settings:
index:
lifecycle.name: "ai-service-log-ilm-policy"
lifecycle.rollover_alias: "ai-service-log-test"
setup.ilm.overwrite: true