# Configure an index pattern Issue

**URL:** <https://discuss.elastic.co/t/configure-an-index-pattern-issue/70540>\
**Category:** Kibana\
**Created:** [January 4, 2017, 11:06am UTC](https://discuss.elastic.co/t/configure-an-index-pattern-issue/70540 "2017-01-04T11:06:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumit](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sumit](https://discuss.elastic.co/u/sumit)\
**Post date:** [January 4, 2017, 11:06am UTC](https://discuss.elastic.co/t/configure-an-index-pattern-issue/70540/1 "2017-01-04T11:06:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 4, 2017, 11:43am UTC](https://discuss.elastic.co/t/configure-an-index-pattern-issue/70540/2 "2017-01-04T11:43:22Z")

</div>

See the Getting Started guide.

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

---

<div class="post-metadata">

**Author:** ![sumit](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sumit](https://discuss.elastic.co/u/sumit)\
**Post date:** [January 4, 2017, 12:29pm UTC](https://discuss.elastic.co/t/configure-an-index-pattern-issue/70540/3 "2017-01-04T12:29:07Z")

</div>

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](http://localhost:9200/shakespeare) -d "

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [January 4, 2017, 8:41pm UTC](https://discuss.elastic.co/t/configure-an-index-pattern-issue/70540/4 "2017-01-04T20:41:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sumit](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sumit](https://discuss.elastic.co/u/sumit)\
**Post date:** [January 5, 2017, 8:52am UTC](https://discuss.elastic.co/t/configure-an-index-pattern-issue/70540/5 "2017-01-05T08:52:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [January 5, 2017, 3:03pm UTC](https://discuss.elastic.co/t/configure-an-index-pattern-issue/70540/6 "2017-01-05T15:03:41Z")

</div>

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](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.

```auto
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

---

<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:** [February 2, 2017, 3:04pm UTC](https://discuss.elastic.co/t/configure-an-index-pattern-issue/70540/7 "2017-02-02T15:04:22Z")

</div>

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