Hi everyone,
I am trying to change the default Metricbeat index name given to elasticsearch from
metricbeat-7.1.1-2019.06.07-000001
to
beatsindex-7.1.1-2019.06.07-000001
However my Elasticsearch index name doesn't change. Down below is my configuration file for metricbeat.yml, I appreciate any suggestions or feedback on what I am doing wrong.
Background Info:
- Metricbeat version: metricbeat-7.1.1
- Linux version: 18.10
metricbeat.yml:
#========================== Modules configuration ============================
metricbeat.config.modules:
# Glob pattern for configuration loading
path: ${path.config}/modules.d/*.yml
# Set to true to enable config reloading
reload.enabled: true
# Period on which files under path should be checked for changes
reload.period: 5s
#==================== Elasticsearch template setting ==========================
setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression
_source.enabled: false
#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["***.aws.found.io:9243/"]
# Optional protocol and basic auth credentials.
protocol: "https"
username: "elastic"
password: "changeme"
index: "beatsindex-%{[agent.version]}-%{+yyyy.MM.dd}"
setup.template.name: "beatsindex"
setup.template.pattern: "beatsindex-*"
#================================ Processors =====================================
# Configure processors to enhance or manipulate events generated by the beat.
processors:
- add_host_metadata: ~
- add_cloud_metadata: ~