{"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[1:2] [index_template] unknown field [index_templates] did you mean any of [index_patterns, template]?"}],"type":"x_content_parse_exception","reason":"[1:2] [index_template] unknown field [index_templates] did you mean any of [index_patterns, template]?"},"status":400}[
I got it working by parsing out the fields with jq:
Yeah, the return of the GET _index_template will be an array in the index_templates field, this will return every template that matchs your get request, each item in the array will be an index template, so you need to parse as you did.
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.