# Elasticsearch not using template correctly?

**URL:** <https://discuss.elastic.co/t/elasticsearch-not-using-template-correctly/155932>\
**Category:** Elasticsearch\
**Created:** [November 8, 2018, 4:39pm UTC](https://discuss.elastic.co/t/elasticsearch-not-using-template-correctly/155932 "2018-11-08T16:39:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rolf\_Nufable](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rolf_nufable/32/48128_2.png) [@Rolf\_Nufable](https://discuss.elastic.co/u/Rolf_Nufable)\
**Post date:** [November 8, 2018, 4:39pm UTC](https://discuss.elastic.co/t/elasticsearch-not-using-template-correctly/155932/1 "2018-11-08T16:39:58Z")

</div>

Hi All,

I'am fairly new to the elastic stack so apologies if this is a very noob question.

I am using ELK within security solutions OS where I created a custom template to cater my needs on one of the CSV files I want to ingest in ELK.

The custom template is listed along with the other templates ( default templates at the ELK stack ). I've also specified in my config file in logstash to use the custom template. But when I would create the index in the Kibana UI ( the index name specified in the config file is seen in kibana ) . The fields displayed are a mix from the custom template and the default templates.

How could I fix this issue??

Plus I cannot see data from the CSV file as well. although Logstash is running completely fine and elasticsearch as well.

Any ideas on what is happening here?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [November 9, 2018, 11:08am UTC](https://discuss.elastic.co/t/elasticsearch-not-using-template-correctly/155932/2 "2018-11-09T11:08:22Z")

</div>

can you share the output of retrieving the template as well as the call of the index creation?

Thanks!

---

<div class="post-metadata">

**Author:** ![Rolf\_Nufable](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rolf_nufable/32/48128_2.png) [@Rolf\_Nufable](https://discuss.elastic.co/u/Rolf_Nufable)\
**Post date:** [November 14, 2018, 5:08pm UTC](https://discuss.elastic.co/t/elasticsearch-not-using-template-correctly/155932/3 "2018-11-14T17:08:16Z")

</div>

Hi spinscale,

Apologies I didn't respond immediately. I forgot I asked a question here in the Elastic group.

Though I have added the csv file now in my ELK instance , ( housed inside Security Onion).

Thanks for your response!

---

<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:** [December 12, 2018, 5:08pm UTC](https://discuss.elastic.co/t/elasticsearch-not-using-template-correctly/155932/4 "2018-12-12T17:08:20Z")

</div>

Closed on December 12, 2018, 5:08pm UTC

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