Configure an index pattern Issue

Hi,

I am new in ELK. I am using Kibana version: 5.1.1 in windows server 2012 and facing an issue "No default index pattern. You must select or create one to continue. ". Can any one help me out regarding the same.

See the Getting Started guide.

https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html

Dear Magnusbaeck,

Thanks for your update. kindly assist me for how can I load and mapping the data.

Where and how I need to write the following command "curl -XPUT http://localhost:9200/shakespeare -d "

If you're on Windows (like me) you need to install a shell with curl like https://www.cygwin.com/. Then open a Cygwin64 terminal and you can use the curl command to write data into Elasticsearch.

Dear LeeDr,

Thank you. I have installed Cygwin64 Terminal and its working properly.

But when I trying to run the following command "curl -XPOST 'localhost:9200/shakespeare/_bulk?pretty' --data-binary @shakespeare.json", I am getting the below error.

Warning: Couldn't read data from file "shakespeare.json", this makes an empty
Warning: POST.
{
"error" : {
"root_cause" : [
{
"type" : "parse_exception",
"reason" : "Failed to derive xcontent"
}
],
"type" : "parse_exception",
"reason" : "Failed to derive xcontent"
},
"status" : 400
}

The shakespeare.json file is in my local. Requesting for assist.

Regards,
Sumit

Here's a link just for link to the docs if someone else reads this post;

https://www.elastic.co/guide/en/kibana/current/tutorial-load-dataset.html

Can you check that your shakespeare.json file really is in your current directory in your cygwin shell. Just do ls -l and you should see it. It should be 25216068 bytes.

Lee@LeeD-ASUS /cygdrive/c/Users/Lee/Downloads
$ ls -l shakespeare.json
-rwx------+ 1 Lee Lee 25216068 Aug 22 12:49 shakespeare.json

NOTE: I am seeing your same problem if I try to use the full path to the file so there's something strange about curl on cygwin. But it works if I copy the file to my working dir or if I cd to where the file is.

Regards,
Lee

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