# The templates won't take effect when I configure 3 file inputs

**URL:** <https://discuss.elastic.co/t/the-templates-wont-take-effect-when-i-configure-3-file-inputs/61292>\
**Category:** Logstash\
**Created:** [September 22, 2016, 4:40pm UTC](https://discuss.elastic.co/t/the-templates-wont-take-effect-when-i-configure-3-file-inputs/61292 "2016-09-22T16:40:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angelina](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@Angelina](https://discuss.elastic.co/u/Angelina)\
**Post date:** [September 22, 2016, 4:40pm UTC](https://discuss.elastic.co/t/the-templates-wont-take-effect-when-i-configure-3-file-inputs/61292/1 "2016-09-22T16:40:23Z")

</div>

Hi,

I have a config file with three file inputs (all of them are log files) and three filters (each of them with a different pattern) and three elasticsearch outputs (each of them goes to a different index). Each index has a different template.

When I run the config file, the templates are ignored and they don't take effect, BUT when I separate the configuration in different files, the templates take effect.

I've already used the following parameters in the config file:

- template =\> "file\_name.json"
- template\_overwrite =\> "true"
- manage\_template =\> "true"
- template\_name =\> "template\_name"

But I don't see improvement.

Has anyone had this error before?

(I'm working with elasticsearch 2.3.2 and logstash 2.3.2)

---

<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:** [July 6, 2017, 4:37am UTC](https://discuss.elastic.co/t/the-templates-wont-take-effect-when-i-configure-3-file-inputs/61292/2 "2017-07-06T04:37:18Z")

</div>


