Inputting this in my ELK server:
curl -XPUT 'http://localhost:9200/_template/topbeat' -d@topbeat.template.json
I get: {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
Any ideas why the command is wrong?
Try adding -H 'Content-Type: application/json' as another option to your curl command.
-H 'Content-Type: application/json'
curl
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.