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

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.

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

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

Thank you @cyrilleverrier for your suggestion. I opened a GitHub issue here.