# Cant load Demo-Data - Tutorial is wrong?

**URL:** <https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752>\
**Category:** Elasticsearch\
**Created:** [May 15, 2017, 11:28am UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752 "2017-05-15T11:28:55Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rico30](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@Rico30](https://discuss.elastic.co/u/Rico30)\
**Post date:** [May 15, 2017, 11:28am UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/1 "2017-05-15T11:28:55Z")

</div>

Hallo,

im stuck at the [tutorial](https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html) to load demo data, maybe someone of you can help me to continue:

I try this line in console (Kibana):  
`curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/bank/account/_bulk?pretty' --data-binary @accounts.json`  
and i get:  
{  
"statusCode": 400,  
"error": "Bad Request",  
"message": "child "method" fails because ["method" must be one of [HEAD, GET, POST, PUT, DELETE]]",  
"validation": {  
"source": "query",  
"keys": [  
"method"  
]  
}  
}  
Can anyone tell me whats wrong?  
ES is installed on a Mac with Sierra, all works fine at installation. I got no error message at installing Kibana and Elasticsearch.

Thank you  
Rico

---

<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:** [May 15, 2017, 11:28pm UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/2 "2017-05-15T23:28:50Z")

</div>

> [@Rico30](#):
>
> curl -H 'Content-Type: application/x-ndjson'

I think there is a typo there, shouldn't it be just `application/json`?

---

<div class="post-metadata">

**Author:** ![Rico30](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@Rico30](https://discuss.elastic.co/u/Rico30)\
**Post date:** [May 28, 2017, 8:18pm UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/3 "2017-05-28T20:18:11Z")

</div>

Hi Mark,  
i tried it with your proposal, but the error message is the same. I tried the tutorial, so i assume there are no typo in this tutorial. Maybe my installation is wrong?

Sorry for my late answer, i was ill.

Thank you  
Rico

---

<div class="post-metadata">

**Author:** ![Rico30](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@Rico30](https://discuss.elastic.co/u/Rico30)\
**Post date:** [May 28, 2017, 10:14pm UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/4 "2017-05-28T22:14:38Z")

</div>

Hallo again,  
If i try in browser [http://localhost:9200/bank](http://localhost:9200/bank) i get  
`{"error":{"root_cause":[{"type":"index_not_found_exception",‌​"reason":"no such index","resource.type":"index_or_alias","resource.id":"bank"‌​,"index_uuid":"_na_"‌​,"index":"bank"}],"t‌​ype":"index_not_foun‌​d_exception","reason‌​":"no such index","resource.type":"index_or_alias","resource.id":"bank"‌​,"index_uuid":"_na_"‌​,"index":"bank"},"st‌​atus":404}`

I defined `log stash-*`as default index pattern.

Did i miss something to do?

Thanks

Rico

---

<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:** [May 28, 2017, 10:19pm UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/5 "2017-05-28T22:19:49Z")

</div>

If you actually have a space there that would be why.

---

<div class="post-metadata">

**Author:** ![Rico30](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@Rico30](https://discuss.elastic.co/u/Rico30)\
**Post date:** [May 28, 2017, 10:22pm UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/6 "2017-05-28T22:22:24Z")

</div>

No, no space there. I defined `logstash-*` as index.

---

<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:** [May 28, 2017, 10:22pm UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/7 "2017-05-28T22:22:55Z")

</div>

> [@Rico30](#):
>
> log stash-\*

It's not `log stash`, it's `logstash`.

---

<div class="post-metadata">

**Author:** ![Rico30](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@Rico30](https://discuss.elastic.co/u/Rico30)\
**Post date:** [May 28, 2017, 10:30pm UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/8 "2017-05-28T22:30:20Z")

</div>

Yes, thats defined: `logstash-*`

It was a typo in this post. sorry

---

<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:** [May 28, 2017, 10:40pm UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/9 "2017-05-28T22:40:53Z")

</div>

What does `GET /_cat/indices?v` show?

---

<div class="post-metadata">

**Author:** ![Rico30](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@Rico30](https://discuss.elastic.co/u/Rico30)\
**Post date:** [May 28, 2017, 10:42pm UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/10 "2017-05-28T22:42:43Z")

</div>

> [@warkolm](#):
>
> GET /\_cat/indices?

It shows:  
`health status index uuid pri rep docs.count docs.deleted store.size pri.store.size yellow open logstash-2015.05.18 W6HUeWikTLWLGV6N_2APXw 5 1 0 0 795b 795b yellow open shakespeare VH4PrsJ_TZaTzQ1HAWpOEg 5 1 0 0 795b 795b yellow open logstash-2015.05.19 rm7sX7MkQSShwrkzA8UuTQ 5 1 0 0 795b 795b yellow open logstash-2015.05.20 1i-pAxzaTpWscYud0Ufczg 5 1 0 0 795b 795b yellow open my-index kbh6QknWRuWlt8dPnb7N7A 5 1 1 0 3.8kb 3.8kb yellow open .kibana oY5181HmQPmPFIE8JvGy4Q 1 1 2 1 9.4kb 9.4kb`

---

<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:** [May 28, 2017, 10:46pm UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/11 "2017-05-28T22:46:24Z")

</div>

You're trying to load `http://localhost:9200/bank` but that doesn't exist as the cat output shows.

Have you followed [https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html](https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html) and [https://www.elastic.co/guide/en/kibana/current/tutorial-discovering.html](https://www.elastic.co/guide/en/kibana/current/tutorial-discovering.html)?

---

<div class="post-metadata">

**Author:** ![Rico30](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@Rico30](https://discuss.elastic.co/u/Rico30)\
**Post date:** [May 28, 2017, 11:02pm UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/12 "2017-05-28T23:02:21Z")

</div>

> Have you followed [https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html1](https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html1) and [https://www.elastic.co/guide/en/kibana/current/tutorial-discovering.html](https://www.elastic.co/guide/en/kibana/current/tutorial-discovering.html)?

Of course not, because im stuck in the chapter before. Normally it makes no sense to continue a tutorial if a step won't work. Especially not in the beginning.

I tried now to define the index for `shakes*` and it works. To create a second index for `ba*` won't work.

What tells you in result of cat that i can't expect a result of `.../bank`?

---

<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:** [May 28, 2017, 11:27pm UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/13 "2017-05-28T23:27:31Z")

</div>

> [@Rico30](#):
>
> What tells you in result of cat that i can't expect a result of .../bank?

You should expect it, but it's not there.

Did the other curl uploads work?

---

<div class="post-metadata">

**Author:** ![Rico30](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@Rico30](https://discuss.elastic.co/u/Rico30)\
**Post date:** [May 28, 2017, 11:39pm UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/14 "2017-05-28T23:39:21Z")

</div>

No, there is the same Problem.

---

<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:** [May 29, 2017, 3:52am UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/15 "2017-05-29T03:52:03Z")

</div>

Ahh ok. I just ran the shakespeare import on 5.4.0 and it worked fine.

Can you post the entire command you are running, with the output. Make sure to include your shell prompt as well.

---

<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:** [June 26, 2017, 3:52am UTC](https://discuss.elastic.co/t/cant-load-demo-data-tutorial-is-wrong/85752/16 "2017-06-26T03:52:04Z")

</div>

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