# Unable to load Json file with data-set using Kibana

**URL:** <https://discuss.elastic.co/t/unable-to-load-json-file-with-data-set-using-kibana/165590>\
**Category:** Kibana\
**Created:** [January 24, 2019, 11:59am UTC](https://discuss.elastic.co/t/unable-to-load-json-file-with-data-set-using-kibana/165590 "2019-01-24T11:59:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomerA](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@TomerA](https://discuss.elastic.co/u/TomerA)\
**Post date:** [January 24, 2019, 11:59am UTC](https://discuss.elastic.co/t/unable-to-load-json-file-with-data-set-using-kibana/165590/1 "2019-01-24T11:59:19Z")

</div>

I have been following the example of loading data-set into Elastic Search, using Kibana {[https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-explore-data.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-explore-data.html)}

When I place in the Kibana console the following:  
" curl -H "Content-Type: application/json" -XPOST "localhost:9200/bank/\_doc/\_bulk?pretty&refresh" --data-binary "@accounts.json" curl "localhost:9200/\_cat/indices?v" "

It is shown in the console as:  
"POST /json  
-binary @accounts.json"

When I try to run it, I get the following:  
"{  
"error": "Incorrect HTTP method for uri [/json?pretty] and method [POST], allowed: [DELETE, GET, HEAD, PUT]",  
"status": 405  
}"  
I have placed the Json file under the home directory {C:\elasticsearch-6.5.4} of the elastic search.  
I am not sure what is the right syntax to load the file and where to place it exactly?  
Thank you in advance

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 21, 2019, 11:59am UTC](https://discuss.elastic.co/t/unable-to-load-json-file-with-data-set-using-kibana/165590/2 "2019-02-21T11:59:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
