碰到一个问题,建立好的索引 在kibana console 里能查看查询
get /apidb/_mapping
get /apidb/_search
但是在kibana的discover 中查询会报错
猜测是
没有加这个
"settings": {
"number_of_shards": 5,
"number_of_replicas": 2
},
我建立了一个apidb1用来测试
然后让kibana discover 去查这个
需要给apidb1创建索引模式
一个 索引模式 标识一个或者多个您想要通过 kiabna 探索的 Elasticsearch 索引。Kibana 会查找与指定模式匹配的索引名称。模式中的星号 () 匹配0个或者多个字符。例如,模式 myindex- 匹配所有名称中以 myindex- 开头的索引,如 myindex-1 和 myindex-2 。
https://www.elastic.co/guide/cn/kibana/current/index-patterns.html#settings-create-pattern
![](https://img.haomeiwen.com/i13402193/bce10699dd8dc56b.jpeg)
![](https://img.haomeiwen.com/i13402193/be5b13d9bfdd5893.jpeg)
这下有了
然后赶紧把apidb删除了加上settting 然后从新加入数据就好了
网友评论