I used to have ElasticSearch 5.2, and just upgraded to 6.0.
I am trying to create an index template following guide here, but got error
Content-Type
The solution is to add Content-Type: application/json header
Content-Type: application/json
curl -XPUT 'localhost:9200/_template/template_1' \ -H 'Content-Type: application/json' \ -d '**your query**'