# Is filebeat 6.1.0 support multi templates setup?

**URL:** <https://discuss.elastic.co/t/is-filebeat-6-1-0-support-multi-templates-setup/112941>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 22, 2017, 5:23am UTC](https://discuss.elastic.co/t/is-filebeat-6-1-0-support-multi-templates-setup/112941 "2017-12-22T05:23:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Astralidea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/astralidea/32/25636_2.png) [@Astralidea](https://discuss.elastic.co/u/Astralidea)\
**Post date:** [December 22, 2017, 5:23am UTC](https://discuss.elastic.co/t/is-filebeat-6-1-0-support-multi-templates-setup/112941/1 "2017-12-22T05:23:04Z")

</div>

```
filebeat.prospectors:
- paths: ["/home/ec2-user/filebeat/app1.log"]
  fields:
    type: "app1"
- paths: ["/home/ec2-user/filebeat/app2.log"]
  fields:
    type: "app2"

setup.template.settings:
  index.number_of_shards: 3
  index.codec: best_compression
  #_source.enabled: false

setup.template.name: "logs-%{+yyyy.MM.dd}"
setup.template.pattern: "logs-*"

setup.template.enable: true
setup.template.overwrite: true

output.elasticsearch:
  hosts: ["xxx"]
  index: "logs-%{+yyyy.MM.dd}"
  indices:
    - index: "app1-%{+yyyy.MM.dd}"
      when.contains:
        fields.type: "app1"
    - index: "app2-%{+yyyy.MM.dd}"
      when.contains:
        fields.type: "app2"

```

this config only setup logs-%{+yyyy.MM.dd}  
how to setup both app1-%{+yyyy.MM.dd},app2-%{+yyyy.MM.dd}?

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [December 26, 2017, 10:08pm UTC](https://discuss.elastic.co/t/is-filebeat-6-1-0-support-multi-templates-setup/112941/2 "2017-12-26T22:08:35Z")

</div>

Setting up multiple templates is currently not supported. For these cases you have to load the template manually.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 23, 2018, 10:08pm UTC](https://discuss.elastic.co/t/is-filebeat-6-1-0-support-multi-templates-setup/112941/3 "2018-01-23T22:08:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
