warrior
warrior

Reputation: 11

ElasticSearch :content-type header application/x-www-form-urlencoded is not supported

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.

screenshot from console

Upvotes: 1

Views: 3013

Answers (1)

jleverenz
jleverenz

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

Related Questions