-1
/rootディレクトリにあるjsonファイルを使用してElastic検索で新しいテンプレートを作成したいとします。curl -X PUTを別ファイルにあるjsonで実行する
私は次のコマンドを実行します。
curl -X PUT 'localhost:9200/_template/template_1?pretty' -H 'Content-Type: application/json' -d /root/myjson
それは私に次のエラーを与える:
Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes
特定のファイルに配置されたデータでcurlコマンドを送信するための正しい方法は何ですか?