"Incorrect HTTP method for uri" when PUTting _index_template

There is no such end point. Just remove the "_index" part and try again, e.g.

PUT http://localhost:9200/_template/your_template_name

You may also want to review that index_patterns value, in my experience it's usually better to have a trailing wildcard matching the indices you want to create with that particular template rather than have a wildcard in the middle of the pattern. This is particularly important if you want to create some sort of template hierarchy in your cluster - perhaps a general template with common fields and then more specialized templates for special fields or shard settings.

You can apply several index templates in a hierarchical fashion when creating one index, you do so by defining the template order and a stricter index_patterns for the higher orders. It's a bit like inheritance for index templates :slight_smile: For an example of this, see Good practice for index templates in ES.

Good luck!