logstash-plugins/logstash-output-elasticsearch

request of using legacy template API in Elasticsearch 8.x

kaisecheng opened this issue · 0 comments

The composable index templates are introduced in Elasticsearch 7.8. The plan was to deprecate the legacy template API in Elasticsearch 8.0, but as of now, the deprecation defers to 9.0.

It is valid to use both APIs in ES 8.x. Currently, the plugin uses legacy API for ES 7.x and forces to use index template API for ES 8.x. This issue is to request backward compatibility for users to choose which API to use.

One suggestion is to provide a boolean flag template_legacy => auto/true/false (default auto) to use legacy API