# Where do I have to place mustache template file for elastic to see it

**URL:** <https://discuss.elastic.co/t/where-do-i-have-to-place-mustache-template-file-for-elastic-to-see-it/153747>\
**Category:** Elasticsearch\
**Created:** [October 24, 2018, 8:00am UTC](https://discuss.elastic.co/t/where-do-i-have-to-place-mustache-template-file-for-elastic-to-see-it/153747 "2018-10-24T08:00:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juriskr](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@juriskr](https://discuss.elastic.co/u/juriskr)\
**Post date:** [October 24, 2018, 8:00am UTC](https://discuss.elastic.co/t/where-do-i-have-to-place-mustache-template-file-for-elastic-to-see-it/153747/1 "2018-10-24T08:00:31Z")

</div>

Where do I have to place mustache template file for elastic to see it.  
I'm running elasticsearch-6.3.2-1.noarch, install rpm pre-build package with the following env variable values:  
ES\_HOME=/usr/share/elasticsearch  
ES\_PATH\_CONF=/etc/elasticsearch

Tried to put script in /etc/elasticsearch/config/scripts, /etc/elasticsearch/scripts, /usr/share/elasticsearch/config/scripts and /usr/share/elasticsearch/scripts. None of them works.

Any ideas ?

---

<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:** [October 24, 2018, 12:13pm UTC](https://discuss.elastic.co/t/where-do-i-have-to-place-mustache-template-file-for-elastic-to-see-it/153747/2 "2018-10-24T12:13:39Z")

</div>

file based scripts are no longer supported since 6.0

Use [stored scripts](https://www.elastic.co/guide/en/elasticsearch/reference/6.4/modules-scripting-using.html#modules-scripting-stored-scripts) instead

---

<div class="post-metadata">

**Author:** ![juriskr](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@juriskr](https://discuss.elastic.co/u/juriskr)\
**Post date:** [October 25, 2018, 10:33am UTC](https://discuss.elastic.co/t/where-do-i-have-to-place-mustache-template-file-for-elastic-to-see-it/153747/3 "2018-10-25T10:33:20Z")

</div>

Thanks for the answer. Done this through API, the issue with this is when you need to use if-then-else construction in mustache, so you end escaping things in JSON and converting it to single string. But it's probably not a big deal.

---

<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:** [November 22, 2018, 10:33am UTC](https://discuss.elastic.co/t/where-do-i-have-to-place-mustache-template-file-for-elastic-to-see-it/153747/4 "2018-11-22T10:33:23Z")

</div>

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