# Suggestion: libbeat to select between xxx.template,json and xxx.template-es2x.json

**URL:** <https://discuss.elastic.co/t/suggestion-libbeat-to-select-between-xxx-template-json-and-xxx-template-es2x-json/50887>\
**Category:** Beats\
**Created:** [May 24, 2016, 9:23pm UTC](https://discuss.elastic.co/t/suggestion-libbeat-to-select-between-xxx-template-json-and-xxx-template-es2x-json/50887 "2016-05-24T21:23:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyrilleverrier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cyrilleverrier/32/9926_2.png) [@cyrilleverrier](https://discuss.elastic.co/u/cyrilleverrier)\
**Post date:** [May 24, 2016, 9:23pm UTC](https://discuss.elastic.co/t/suggestion-libbeat-to-select-between-xxx-template-json-and-xxx-template-es2x-json/50887/1 "2016-05-24T21:23:43Z")

</div>

Hi Beat developers,

May I suggest you to implement in libbeat a way to push the correct ES template file depending on the ES server.  
I believe it should not be difficult to query the ES version and select xxx.template,json or xxx.template-es2x.json instead of having to configure it in the yaml file.

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [May 25, 2016, 9:49am UTC](https://discuss.elastic.co/t/suggestion-libbeat-to-select-between-xxx-template-json-and-xxx-template-es2x-json/50887/2 "2016-05-25T09:49:25Z")

</div>

Thanks for the suggestion, we'll try to do something like that.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [May 26, 2016, 7:36am UTC](https://discuss.elastic.co/t/suggestion-libbeat-to-select-between-xxx-template-json-and-xxx-template-es2x-json/50887/3 "2016-05-26T07:36:38Z")

</div>

Should we open an issue for that on Github to track it?

---

<div class="post-metadata">

**Author:** ![monica](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monica/32/3696_2.png) [@monica](https://discuss.elastic.co/u/monica)\
**Post date:** [May 26, 2016, 8:07am UTC](https://discuss.elastic.co/t/suggestion-libbeat-to-select-between-xxx-template-json-and-xxx-template-es2x-json/50887/4 "2016-05-26T08:07:38Z")

</div>

Thank you @cyrilleverrier for your suggestion. I opened a GitHub issue [here](https://github.com/elastic/beats/issues/1740).

---

<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 5, 2017, 9:51pm UTC](https://discuss.elastic.co/t/suggestion-libbeat-to-select-between-xxx-template-json-and-xxx-template-es2x-json/50887/5 "2017-07-05T21:51:28Z")

</div>


