# Pointing output.conf to a custom added template

**URL:** <https://discuss.elastic.co/t/pointing-output-conf-to-a-custom-added-template/1589>\
**Category:** Logstash\
**Created:** [May 30, 2015, 5:50pm UTC](https://discuss.elastic.co/t/pointing-output-conf-to-a-custom-added-template/1589 "2015-05-30T17:50:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobkabir](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bobkabir](https://discuss.elastic.co/u/bobkabir)\
**Post date:** [May 30, 2015, 5:50pm UTC](https://discuss.elastic.co/t/pointing-output-conf-to-a-custom-added-template/1589/1 "2015-05-30T17:50:25Z")

</div>

i created a new index template in elasticsearch, which is just a copy-paste of the default logstash template except i renamed it x\_logs and put "template" : "x\_logs-\*"

my output.conf has this  
if [type] == x\_logs {  
elasticsearch {  
host =\> localhost  
protocol =\> "http"  
manage\_template =\> false  
index =\> "x\_logs-%{+YYYY.MM.dd}"  
}  
}

is this the correct method of telling logstash to use that new index template for x\_logs? am i missing something?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 30, 2015, 8:07pm UTC](https://discuss.elastic.co/t/pointing-output-conf-to-a-custom-added-template/1589/2 "2015-05-30T20:07:14Z")

</div>

Are you saying that you yourself have created the index template in Elasticsearch and don't want Logstash to do anything related to index templates? Then yes, you're doing the right thing (the `manage_template` parameter is the key).

---

<div class="post-metadata">

**Author:** ![bobkabir](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bobkabir](https://discuss.elastic.co/u/bobkabir)\
**Post date:** [May 31, 2015, 1:45am UTC](https://discuss.elastic.co/t/pointing-output-conf-to-a-custom-added-template/1589/3 "2015-05-31T01:45:48Z")

</div>

i believe thats what im trying to achieve. i created an index template in ES. i want x\_logs from logstash to go and use that index template.

---

<div class="post-metadata">

**Author:** ![bobkabir](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@bobkabir](https://discuss.elastic.co/u/bobkabir)\
**Post date:** [May 31, 2015, 2:05am UTC](https://discuss.elastic.co/t/pointing-output-conf-to-a-custom-added-template/1589/4 "2015-05-31T02:05:58Z")

</div>

server was rebooted and logs are now coming in. 🙂

---

<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, 5:38am UTC](https://discuss.elastic.co/t/pointing-output-conf-to-a-custom-added-template/1589/5 "2017-07-06T05:38:59Z")

</div>


