Troubleshooting Loading Sample Data to Kibana

I am new to Elastic. I am trying to build my home lab at my Windows laptop.
I am using Elastic and Kibana at Windows. I want to upload shakespeare_6.0.json with the following command from the documentation says.

But I got the following message as below.
Could you please advise me what I am doing wrong in here?

curl_7_53_1_openssl_nghttp2_x64>curl -H 'Content-Type: application/x-ndjson' -XPOST -u elastic 'localhost:9200/shakespeare/doc/_bulk?pretty' --data-binary @shakespeare_6.0.json
Enter host password for user 'elastic':
curl: (52) Empty reply from server
curl: (6) Could not resolve host: 'localhost

I have checked this from chome browser as below.

"name" : "CND7083L5YZBOOK",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "-a31QYZmRPuYMxXJNND5TA",
"version" : {
"number" : "6.1.2",
"build_hash" : "5b1fea5",
"build_date" : "2018-01-10T02:35:59.208Z",
"build_snapshot" : false,
"lucene_version" : "7.1.0",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
"tagline" : "You Know, for Search"


Have you installed x-pack in your local? If you did so - did you set your password for elastic?

Step 7 is what you need here:

Once you have done it - you can supply that password while ingesting shakespeare:

 curl -H 'Content-Type: application/x-ndjson' -XPOST -u elastic:<password> 'localhost:9200/shakespeare/doc/_bulk?pretty' --data-binary @shakespeare_6.0.json

Let me know if it doesn't help you.


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