I'm attempting to create a custom index using ILM policy through Filebeat and everything appears to be fine except that the Index Pattern created in Kibana by Filebeat is not using the custom pattern that I'm providing in my configuration:
filebeat.modules:
- module: traefik
access:
enabled: true
output.elasticsearch:
hosts: ["tasks.elasticsearch:9200"]
worker: 2
index: "traefik-%{[agent.version]}"
setup.dashboards.enabled: true
setup.dashboards.index: "traefik-*"
setup.template.enabled: true
setup.template.name: "traefik"
setup.template.pattern: "traefik-*"
setup.template.overwrite: true
setup.ilm.enabled: auto
setup.ilm.rollover_alias: "traefik"
setup.ilm.pattern: "{now/d{MM.dd.yyyy|America/New_York}}-000001"
setup.ilm.policy_name: "TraefikLogPolicy"
setup.ilm.policy_file: "/usr/share/filebeat/traefik.ilm.policy.json"
setup.ilm.overwrite: true
setup.kibana:
host: "kibana:5601"
logging.level: info
monitoring.enabled: true
monitoring.elasticsearch:
hosts: ["tasks.elasticsearch:9200"]
The index creates without issue (using rollover pattern and attached to ILM policy), the dashboards even update to the correct pattern ("traefik-*"). However, Kibana doesn't show the "traefik-*" index pattern but instead always creates a "filebeat*" pattern instead. What am I missing in my config to properly set the index pattern automatically in Kibana?
I'm currently using Docker 19.03.2 (Swarm) and Elastic 7.3.2