I want to create a new template in Elastic search with a json file which located in /root directory.
I run the following:
curl -X PUT 'localhost:9200/_template/template_1?pretty' -H 'Content-Type: application/json' -d /root/myjson
It gives me the following error:
Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes
What is the correct way to send curl command with data that is placed in specific file?