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


(Juris Krumins) #1

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 ?


(Alexander Reelsen) #2

file based scripts are no longer supported since 6.0

Use stored scripts instead


(Juris Krumins) #3

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.


(system) #4

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