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


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

Do you know what is happening?



As it mentions, do you have any logstash indices?

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.

How can I have logstash indices? If I go to 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.



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.


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

1 Like

@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

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

1 Like

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

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

I hit the same problem. After follow instructions from

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?

Please start your own thread.