Cant load Demo-Data - Tutorial is wrong?

Hallo,

im stuck at the tutorial 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

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

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

Hallo again,
If i try in browser 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

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

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

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

Yes, thats defined: logstash-*

It was a typo in this post. sorry

What does GET /_cat/indices?v show?

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

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 and https://www.elastic.co/guide/en/kibana/current/tutorial-discovering.html?

Have you followed https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html1 and 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?

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

Did the other curl uploads work?

No, there is the same Problem.

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.

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