# Elasticsearch tutorial bulkload

**URL:** <https://discuss.elastic.co/t/elasticsearch-tutorial-bulkload/66893>\
**Category:** Elasticsearch\
**Created:** [November 22, 2016, 4:38pm UTC](https://discuss.elastic.co/t/elasticsearch-tutorial-bulkload/66893 "2016-11-22T16:38:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmr](https://avatars.discourse-cdn.com/v4/letter/n/e9a140/32.png) [@nmr](https://discuss.elastic.co/u/nmr)\
**Post date:** [November 22, 2016, 4:38pm UTC](https://discuss.elastic.co/t/elasticsearch-tutorial-bulkload/66893/1 "2016-11-22T16:38:10Z")

</div>

I'm going through the Elasticsearch tutorials and i'm trying to load data from the sample file into Elasticsearch and i'm encountering a problem  
curl -XPOST 'localhost:9200/bank/account/\_bulk?pretty&refresh' --data-binary "@accounts.json"

i'm getting the following message when i run it on the Kibana console. I'm guessing there's an issue with the path of the file, where am i supposed to download the "accounts.json" file, i've downloaded it to the home directory of Elasticsearch, i've tried to put it in bin as well.  
{  
"error": {  
"root\_cause": [  
{  
"type": "parse\_exception",  
"reason": "Failed to derive xcontent"  
}  
],  
"type": "parse\_exception",  
"reason": "Failed to derive xcontent"  
},  
"status": 400  
}

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [November 23, 2016, 10:54am UTC](https://discuss.elastic.co/t/elasticsearch-tutorial-bulkload/66893/2 "2016-11-23T10:54:43Z")

</div>

Could you please post the exact command you are running in the Kibana Console?

The curl command you posted is something you'd run from your favorite command-line/ shell, so that won't work as is in Kibana.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 24, 2016, 5:05am UTC](https://discuss.elastic.co/t/elasticsearch-tutorial-bulkload/66893/3 "2016-11-24T05:05:22Z")

</div>

Also what version are you running?

---

<div class="post-metadata">

**Author:** ![nmr](https://avatars.discourse-cdn.com/v4/letter/n/e9a140/32.png) [@nmr](https://discuss.elastic.co/u/nmr)\
**Post date:** [November 25, 2016, 3:32pm UTC](https://discuss.elastic.co/t/elasticsearch-tutorial-bulkload/66893/4 "2016-11-25T15:32:14Z")

</div>

Hello, the curl command gets converted in a Kibana console anyways, so it doesn't matter, but here's what i'm running  
POST /bank/account/\_bulk?pretty&refresh-binary @accounts.json

I'm assuming i'd have to something about the path of this accounts.json file, like i said before i've put in the homedirectory of elastic search

---

<div class="post-metadata">

**Author:** ![nmr](https://avatars.discourse-cdn.com/v4/letter/n/e9a140/32.png) [@nmr](https://discuss.elastic.co/u/nmr)\
**Post date:** [November 25, 2016, 3:32pm UTC](https://discuss.elastic.co/t/elasticsearch-tutorial-bulkload/66893/5 "2016-11-25T15:32:40Z")

</div>

im running the latest version

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 25, 2016, 8:30pm UTC](https://discuss.elastic.co/t/elasticsearch-tutorial-bulkload/66893/6 "2016-11-25T20:30:45Z")

</div>

You cannot post files to ES using sense, you will need to use curl directly.

---

<div class="post-metadata">

**Author:** ![nmr](https://avatars.discourse-cdn.com/v4/letter/n/e9a140/32.png) [@nmr](https://discuss.elastic.co/u/nmr)\
**Post date:** [November 30, 2016, 4:23pm UTC](https://discuss.elastic.co/t/elasticsearch-tutorial-bulkload/66893/7 "2016-11-30T16:23:39Z")

</div>

does to apply to the Kibana console as well? Would i be able to post files to ES from there?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 30, 2016, 9:32pm UTC](https://discuss.elastic.co/t/elasticsearch-tutorial-bulkload/66893/8 "2016-11-30T21:32:43Z")

</div>

Yes it does apply.

---

<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:** [December 28, 2016, 9:32pm UTC](https://discuss.elastic.co/t/elasticsearch-tutorial-bulkload/66893/9 "2016-12-28T21:32:58Z")

</div>

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