We have migrated to Elasticsearch from 5.5 to 6.5. We have field in template index.codec but it is not accepting anymore when I try to create the template in ES6.5. But same template is getting created in ES5.5.
curl -X PUT "localhost:9200/_template/junoslogs" -H 'Content-Type: application/json' -d @template-lc.json
{"error":{"root_cause":[{"type":"parse_exception","reason":"unknown key [index.codec] in the template "}],"type":"parse_exception","reason":"unknown key [index.codec] in the template "},"status":400}
Elasticsearch has been improving validations so it is possible this is a side effect of that. The dot notation would probably work if you did not already have the index block present.
I just wanted to update you as this info might be useful for Elasticsearch team.
As I mentioned that codec tag worked if I move it to under index. But it is also working if we put index.codec outside the index tag but inside the settings tag. Like below.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.