Hello, our worked config of filebeat.yml:
#===== Filebeat Inputs ======
filebeat.inputs:
- type: docker
combine_partial: true
containers:
path: "/var/lib/docker/containers"
ids :
- "*"
#===== Filebeat modules =====
filebeat.config.modules:
path: "${path.config}/modules.d/*.yml"
reload.enabled: false
#===== Elasticsearch template setting, we do not create any special template for new containers =====
setup.template:
name: '%{[container.name]}'
pattern: '%{[container.name]}-*'
enabled: false
setup.ilm.enabled: false
#===== Elastic Cloud ======
cloud.id : "ID"
cloud.auth: "AUTH"
#===== Outputs, any new container adds automatic =====
output.elasticsearch.index: "%{[container.name]}-%{+yyyy.MM.dd}"
#==== Processors =====
processors:
- add_fields:
target: ''
fields:
servertype: "some-servertype"
domain: "some-domain"
- add_host_metadata : ~
- add_cloud_metadata : ~
- add_docker_metadata: ~
- decode_json_fields:
fields: ['message']
target: json
max_depth: 4
When we enable ILM, filebeat can not generate automatic index names "%{[container.name]}-%{+yyyy.MM.dd}" ..
How fix this with ILM enabled? Thank for any recommendation..