找到问题的解决办法了么?

怎么查询es下有哪些索引

Elasticsearch | 作者 jiang_hoo | 发布于2015年12月06日 | 阅读数:42950

怎么查询es下有哪些索引
已邀请:

hongwentakkk

赞同来自: medcl

curl -XGET 127.0.0.1:9200/_cat/indices
 
这个最方便了。

jiang_hoo

赞同来自:

自己尝试了两种方法:
1.curl -XGET http://localhost:9200/_custer/state?pretty  可以先找到index,如下:
{
        "state" : "STARTED",
        "primary" : true,
        "node" : "y17BqE1HT96sY1Ek1A4y2A",
        "relocating_node" : null,
        "shard" : 2,
        "index" : "logstash-2015.11.29"
      }

2.通过head插件
localhost:9200/_plugin/head/

要回复问题请先登录注册