I tried to set custom index name however it was not working. below are my config
setup.ilm.enabled: false
output.elasticsearch.index: "%{[metricset.name]}-=-%{[event.module]}%{+yyyy.MM.dd}"
setup.template.name: "%{[metricset.name]}"
setup.template.pattern: "%{[metricset.name]}-=-*"