查询索引列表信息并格式化为json:

http://127.0.0.1:9021/_cat/indices?format=json&index=[索引名称,可使用通配符]

执行后获取到的结果集如下:

[
    {
        "health": "green",
        "status": "open",
        "index": "[此处为你的索引名称]",
        "uuid": "towtsSEnQR6hqOTDDsWdig",
        "pri": "5",
        "rep": "1",
        "docs.count": "25",
        "docs.deleted": "0",
        "store.size": "258.4kb",
        "pri.store.size": "258.4kb"
    },
    {
        ......
    }
]

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2019-05-16
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2021-10-06
  • 2021-04-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-18
相关资源
相似解决方案