# Unable to fetch mapping with kibana, however there are indices in Elasticsearch

**URL:** https://discuss.elastic.co/t/unable-to-fetch-mapping-with-kibana-however-there-are-indices-in-elasticsearch/100998
**Category:** Kibana
**Created:** [September 19, 2017, 9:24am UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-with-kibana-however-there-are-indices-in-elasticsearch/100998 "2017-09-19T09:24:24Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Nandor\_Soma\_Abonyi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nandor_soma_abonyi/32/22270_2.png) [@Nandor\_Soma\_Abonyi](https://discuss.elastic.co/u/Nandor_Soma_Abonyi)
#### Post date: [September 19, 2017, 9:24am UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-with-kibana-however-there-are-indices-in-elasticsearch/100998/1 "2017-09-19T09:24:24Z")

</div>

Hello!

I have a problem that I can't configure index pattern.

Error message:  
Unable to fetch mapping. Do you have indices matching the pattern?

Seems like that Kibana can't query elasticsearch properly.

curl '[http://localhost:9200/\_cat/indices](http://localhost:9200/_cat/indices)' returns:

yellow open .kibana uciy46GzSGSDs9fUlSnH2g 1 1 1 0 3.1kb 3.1kb  
yellow open logstash-2017.09.18 OjAoSQqgQB-GNQIO9xGnKA 5 1 33 0 65.9kb 65.9kb  
yellow open logstash-2017.09.19 ed0hHZbcRQK0yyIfbRsAgg 5 1 180059 0 70.8mb 70.8mb

My first thought would be that kibana can't connect to elasticsearch, but that's not true because when elasticsearch is not running I getting a different error that Kibana can't reach it.

OS: RHEL 6

Any help would be appreciated!

Thank you!

Soma

---

<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: [September 19, 2017, 9:28am UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-with-kibana-however-there-are-indices-in-elasticsearch/100998/2 "2017-09-19T09:28:08Z")

</div>

What index pattern are you defining?

---

<div class="post-metadata">

### Author: ![Nandor\_Soma\_Abonyi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nandor_soma_abonyi/32/22270_2.png) [@Nandor\_Soma\_Abonyi](https://discuss.elastic.co/u/Nandor_Soma_Abonyi)
#### Post date: [September 19, 2017, 9:32am UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-with-kibana-however-there-are-indices-in-elasticsearch/100998/3 "2017-09-19T09:32:24Z")

</div>

Hey!

logstash-\* (the default one)

I also forgot to mention that kibana.stderr is empty

---

<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: [September 19, 2017, 9:34am UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-with-kibana-however-there-are-indices-in-elasticsearch/100998/4 "2017-09-19T09:34:45Z")

</div>

That's odd, anything telling in the Kibana logs?

---

<div class="post-metadata">

### Author: ![Nandor\_Soma\_Abonyi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nandor_soma_abonyi/32/22270_2.png) [@Nandor\_Soma\_Abonyi](https://discuss.elastic.co/u/Nandor_Soma_Abonyi)
#### Post date: [September 19, 2017, 9:38am UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-with-kibana-however-there-are-indices-in-elasticsearch/100998/5 "2017-09-19T09:38:54Z")

</div>

Nothing.

kibana.stderr - empty

kibana.stdout  
there are a lot of information about opening the kibana page itself  
only interesting is that one:  
{"type":"log","@timestamp":"2017-09-18T15:27:45Z","tags":["status","plugin:elasticsearch@5.4.0","info"],"pid":10351,"state":"green","message":"Status changed from yellow to green - Kibana index ready","prevState":"yellow","prevMsg":"Wait  
ing for Elasticsearch"}

But it says that everything is ok.

---

<div class="post-metadata">

### Author: ![Nandor\_Soma\_Abonyi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nandor_soma_abonyi/32/22270_2.png) [@Nandor\_Soma\_Abonyi](https://discuss.elastic.co/u/Nandor_Soma_Abonyi)
#### Post date: [September 19, 2017, 11:02am UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-with-kibana-however-there-are-indices-in-elasticsearch/100998/6 "2017-09-19T11:02:54Z")

</div>

What is also interesing that under dev tools with the next query I see that there are logs in elasticsearch.

```
GET _search
{
  "query": {
    "match_all": {}
  }
}

```

Part of the result:  
{  
"took": 2,  
"timed\_out": false,  
"\_shards": {  
"total": 11,  
"successful": 11,  
"failed": 0  
},  
"hits": {  
"total": 180093,  
"max\_score": 1,  
"hits": [  
{  
"\_index": ".kibana",  
"\_type": "config",  
"\_id": "5.4.0",  
"\_score": 1,  
"\_source": {  
"buildNum": 15063  
}  
},  
{  
"\_index": "logstash-2017.09.18",  
"\_type": "logs",  
"\_id": "AV6PgqIYCVprfWztgKrF",  
"\_score": 1,  
"\_source": {  
"path": "/opt/test/test.2017-09-18.log",  
"@timestamp": "2017-09-18T15:01:58.533Z",  
"data": "32479234",  
"log-level": "DEBUG",  
"@version": "1",  
"host": "test-elastic-srv",  
"thread": "[taskScheduler-2]",  
"message": "2017-09-18 00:00:45.527 [taskScheduler-2] DEBUG a.s.d.p.TestServiceImpl - new request",  
"logtime": "2017-09-18 00:00:45.527",  
"class": "a.s.d.p.TestServiceImpl",  
"tags": [  
"test-app"  
]  
}  
}  
]  
}  
}

---

<div class="post-metadata">

### Author: ![Nandor\_Soma\_Abonyi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nandor_soma_abonyi/32/22270_2.png) [@Nandor\_Soma\_Abonyi](https://discuss.elastic.co/u/Nandor_Soma_Abonyi)
#### Post date: [October 3, 2017, 3:07pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-with-kibana-however-there-are-indices-in-elasticsearch/100998/7 "2017-10-03T15:07:07Z")

</div>

Hello!

I still need help. I tried to reinstall/reconfigure kibana and elasticsearch but it still does not work.

Theres no error in the logs.

 ![dev_tools](https://us1.discourse-cdn.com/elastic/original/3X/2/0/20f63c9a3cde6bdfebafb96fae86388f46aee441.PNG)

 ![index_pattern_setup](https://us1.discourse-cdn.com/elastic/original/3X/7/f/7ff33ddf341da0670d80e6aaffc97021c4c787b8.PNG)

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [October 3, 2017, 3:36pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-with-kibana-however-there-are-indices-in-elasticsearch/100998/8 "2017-10-03T15:36:50Z")

</div>

Does logstash\* work. I am wondering if either the index name or the pattern are using different characters (en-dash vs. hyphen, for example).

---

<div class="post-metadata">

### Author: ![Nandor\_Soma\_Abonyi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nandor_soma_abonyi/32/22270_2.png) [@Nandor\_Soma\_Abonyi](https://discuss.elastic.co/u/Nandor_Soma_Abonyi)
#### Post date: [October 3, 2017, 3:48pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-with-kibana-however-there-are-indices-in-elasticsearch/100998/9 "2017-10-03T15:48:08Z")

</div>

Doesn't work. ☹ I even tried l\*

---

<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: [October 31, 2017, 3:48pm UTC](https://discuss.elastic.co/t/unable-to-fetch-mapping-with-kibana-however-there-are-indices-in-elasticsearch/100998/10 "2017-10-31T15:48:26Z")

</div>

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