Reputation: 11
So i had this error after typing this command:
curl -XPUT localhost:9200/_bulk --data-binary @movies_elastic.json
, i found an answer here : ElasticSearch - Content-Type header [application/x-www-form-urlencoded] is not supported
that suggested to add -H option but i didn't get where to add it exactly.
Please keep in mind i'm new to ELK.
Thanks.
Upvotes: 1
Views: 3013
Reputation: 411
Assuming everything else with your command is correct, it's a command line option to curl. Like this:
curl -XPUT localhost:9200/_bulk -H'Content-Type: application/json' --data-binary @movies_elastic.json
Upvotes: 1