Beats does not create an index from output.elasticsearch.index
.
I have this configuration for metricbeat:
metricbeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
setup.template.enabled: true
setup.template.overwrite: true
setup.template.pattern: "m-*"
setup.template.name: "metricbeat7"
setup.template.settings:
index.number_of_shards: 1
index.number_of_replicas: 0
index.refresh_interval: "15s"
index.mapping.total_fields.limit: 999
index.codec: best_compression
setup.ilm.enabled: false
output.elasticsearch:
hosts: ["127.0.0.1:9200"]
username: "elastic"
password: "***********"
index: "m-127.0.0.1-%{+yyyy.MM.dd}"
But at same time, index template and index itself are not created.
P.S. If run with standard settings in metricbeat.yml, template and index will be created with default name and settings.
User for beats has superuser permissions.