I am trying to copy .json file to kibana but whenever I try to copy using terminal I am getting this error
Warning: Couldn't read data from file "test-data.json", this makes an empty
Warning: POST.
{"error":{"root_cause":[{"type":"parse_exception","reason":"request body is required"}],"type":"parse_exception","reason":"request body is required"},"status":400}
I am running this command on terminal
$ curl -H "Content-Type application/x-ndjson" -XPOST http://localhost:9200/items/_bulk --data-binary @test-data.json