curl -s -XGET 'http://ip:port/_cat/indices/indexname?v' | awk -F ' ' {'print $7'} | grep -v docs.count
 
查看集群中所有index的详细信息,包括index状态,shard个数(primary/replica),doc个数等,可参考help. 可以查看指定index的信息(/_cat/indices/${index}).
示例:
es通过api查询某个索引得数据量

 

相关文章:

  • 2022-12-23
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2021-05-19
  • 2022-02-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
相关资源
相似解决方案