# Unable to fetch mapping. Do you have indices matching the pattern

**URL:** https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844
**Category:** Kibana
**Created:** [May 18, 2015, 2:39pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844 "2015-05-18T14:39:57Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Laia\_Subirats](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@Laia\_Subirats](https://discuss.elastic.co/u/Laia_Subirats)
#### Post date: [May 18, 2015, 2:39pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844/1 "2015-05-18T14:39:57Z")

</div>

Hi,

I cannot configure an index pattern because I do not have a green create button.

 ![](https://cloud.githubusercontent.com/assets/6390942/7679162/99f0c88c-fd5a-11e4-9c21-4c81ac1a0f59.png)

Do you know what is happening?

Thanks,

Laia

---

<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 18, 2015, 9:03pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844/2 "2015-05-18T21:03:12Z")

</div>

As it mentions, do you have any logstash indices?

---

<div class="post-metadata">

### Author: ![kitex](https://avatars.discourse-cdn.com/v4/letter/k/f14d63/32.png) [@kitex](https://discuss.elastic.co/u/kitex)
#### Post date: [May 19, 2015, 12:55am UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844/3 "2015-05-19T00:55:54Z")

</div>

It will be visible only after you type correct index name or index pattern. example if you are using jdbc river with name "test\_123" type test\* or if you are using logstash then type as mentioned.

---

<div class="post-metadata">

### Author: ![Laia\_Subirats](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@Laia\_Subirats](https://discuss.elastic.co/u/Laia_Subirats)
#### Post date: [May 19, 2015, 7:11am UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844/4 "2015-05-19T07:11:29Z")

</div>

How can I have logstash indices? If I go to [http://localhost:9200/\_cat/indices](http://localhost:9200/_cat/indices) I have the following result:

yellow open .kibana 1 1 1 0 2.8kb 2.8kb

I have installed elasticsearch service 1.5.2 and Kibana 4.0.1.

Thanks,

Laia

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [May 19, 2015, 11:55am UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844/5 "2015-05-19T11:55:35Z")

</div>

Kibana is a visualisation tool, and need data in Elasticsearch to work with. The .kibana index holds Kibana related data, and if they is the only index you have there is no data available that Kibana can visualise.

Before you can use Kibana you will therefore need to index some data into Elasticsearch. This can be done e.g. using Logstash or directly through the REST interface using curl.

Christian

---

<div class="post-metadata">

### Author: ![kebbkh](https://avatars.discourse-cdn.com/v4/letter/k/a6a055/32.png) [@kebbkh](https://discuss.elastic.co/u/kebbkh)
#### Post date: [July 3, 2015, 6:14pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844/6 "2015-07-03T18:14:07Z")

</div>

Am having the same issue, and I was wondering if there was some curl command we can use to index some data into ES?

---

<div class="post-metadata">

### Author: ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)
#### Post date: [July 4, 2015, 3:28pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844/7 "2015-07-04T15:28:47Z")

</div>

@kebbkh Yes, you can index data into Elasticsearch using cURL - the Kibana "getting started" guide will show you how to do it: [https://www.elastic.co/guide/en/kibana/current/getting-started.html](https://www.elastic.co/guide/en/kibana/current/getting-started.html)

---

<div class="post-metadata">

### Author: ![Ashok](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Ashok](https://discuss.elastic.co/u/Ashok)
#### Post date: [July 7, 2015, 11:20am UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844/8 "2015-07-07T11:20:33Z")

</div>

Is there any other way to add index data without using cURL?

---

<div class="post-metadata">

### Author: ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)
#### Post date: [July 7, 2015, 12:59pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844/9 "2015-07-07T12:59:06Z")

</div>

The other way is to set up Logstash, which is designed for large-scale, streaming processing of data and inserting into Elasticsearch, as well as sending to other places. More info on that here: [https://www.elastic.co/guide/en/logstash/current/index.html](https://www.elastic.co/guide/en/logstash/current/index.html)

We are also tracking a request to upload small data sets into Elasticsearch directly through the Kibana UI for experimentation purposes, feel free to +1: [https://github.com/elastic/kibana/issues/4240](https://github.com/elastic/kibana/issues/4240)

---

<div class="post-metadata">

### Author: ![gang\_xu](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@gang\_xu](https://discuss.elastic.co/u/gang_xu)
#### Post date: [October 30, 2015, 6:01am UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844/10 "2015-10-30T06:01:24Z")

</div>

I hit the same problem. After follow instructions from  
[https://www.elastic.co/guide/en/kibana/current/getting-started.html](https://www.elastic.co/guide/en/kibana/current/getting-started.html)

Solved now. Thanks

BTW, I have to add more info for above doc.

From instruction above, below command will fail on CentOS 7  
curl -XPOST 'localhost:9200/bank/\_bulk?pretty' --data-binary @accounts.json

I did not know if it is data problem or others.

{  
"error" : {  
"root\_cause" : [ {  
"type" : "action\_request\_validation\_exception",  
"reason" : "Validation Failed: 1: type is missing;  
[...]  
"status" : 400  
}

I can verify with below command

[elk@acdc-9-5-125-149 ~]$ curl 'localhost:9200/\_cat/indices?v'  
health status index pri rep docs.count docs.deleted store.size pri.store.size  
yellow open .kibana 1 1 1 0 2.9kb 2.9kb  
yellow open shakespeare 5 1 111396 0 18.5mb 18.5mb  
yellow open logstash-2015.05.20 5 1 4750 0 18.1mb 18.1mb  
yellow open logstash-2015.05.18 5 1 4631 0 17.5mb 17.5mb  
yellow open logstash-2015.05.19 5 1 4624 0 17.4mb 17.4mb

We did can not find any index for bank.

Is there anyone will check again?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [October 30, 2015, 6:22am UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844/11 "2015-10-30T06:22:52Z")

</div>

Please start your own thread.

---

<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: [July 6, 2017, 2:10pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-do-you-have-indices-matching-the-pattern/844/12 "2017-07-06T14:10:21Z")

</div>


