Hello wonderful people!
I would like to create different indexes for each environment that I have (test / staging / production)
I am using elastic cloud setup with filebeat 7.1.x but I cannot specify custom index name for some reason.
This is what my filebeat.yaml file looks like;
setup.template.name: "test-filebeat"
setup.template.pattern: "test-filebeat-*"
output.elasticsearch:
index: "test-filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"
hosts: ['${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9200}']
username: ${ELASTICSEARCH_USERNAME}
password: ${ELASTICSEARCH_PASSWORD}
cloud.id: ${ELASTIC_CLOUD_ID}
cloud.auth: ${ELASTIC_CLOUD_AUTH}
I expect to see it like this: test- in front of my indexes... but this is how it shows up:
filebeat-7.1.1-2019.06.06-000001
What am I doing wrong here? I went thru a lot of support articles and cannot figure this out.