ElasticSearch索引列表API

index API


Request URL: http://localhost:4567/_cluster/state
Request Method: GET

和 Elasticsearch 里其他 API 一样,cluster-state 会返回一个JSON 响应。

{
    blocks:{}
    cluster_name:"es_cluster"
    master_node:"lx3zKlLISuyU1_OBjSWcqg"
    metadata:{cluster_uuid: "4bL8x2TiTKiz_IMZt0mmQA",…}
    nodes:{lx3zKlLISuyU1_OBjSWcqg:{name:"node0",transport_address:"localhost:9200", attributes: {}}}
    routing_nodes:{,…}
    routing_table:{indices: {tms_supplier-2018.04.08: {shards: {0: [,…], 1: [,…], 2: [,…], 3: [,…], 4: [,…]}},…}}
    state_uuid:"h5ExO6HTTU6kP2OHzGnbQA"
    version:1207
}

routing_table.indlices 展开,里面是可以被查询log日志的所有索引。

    indices:{
    .kibana:{shards: {0: [,…]}}
    app_access_log-2018.04.06:{shards: {0: [,…], 1: [,…], 2: [,…], 3: [,…], 4: [,…]}}
    app_access_log-2018.04.07:{shards: {0: [,…], 1: [,…], 2: [,…], 3: [,…], 4: [,…]}}
    ...
    }

猜你喜欢

转载自blog.csdn.net/bug4pie/article/details/80218686