I have follwing setting on metricbeat.yml
setup.template.enabled: true
setup.template.overwrite: true
output.elasticsearch.index: "hou_metricbeat_insite-%{[agent.version]}-%{+yyyy.MM.dd}"
setup.template.name: "hou_metricbeat_insite"
setup.template.pattern: "hou_metricbeat_insite-*"
setup.template.fields: "fields.yml"
setup.ilm.enabled: auto
setup.ilm.rollover_alias: "hou_metricbeat_insite"
setup.ilm.pattern: "{now/d}-000001"
it does create index called hou_metricbeat_insite-{date} no agent.version there.
I even try %{agent.version} but no luck.
it does creates index, and ILM policy. but without agent.version