文章目录
- 一、获取store大小
- 1、获取所有索引的store大小
- 2、获取指定索引的store大小
- 3、获取同类索引的store大小
- 二、输出结果
- 三、结果详情
- 1、_shards
- 2、_all
- 3、indices
转载请标明出处:
http://blog.csdn.net/qq_27818541/article/details/112970726
本文出自:【BigManing的博客】
一、获取store大小
可以不指定索引 、也可以指定具体索引、也可以指定模糊索引
1、获取所有索引的store大小
复制代码
1
2http://local.elasticsearch:9200/_stats/store
2、获取指定索引的store大小
复制代码
1
2http://local.elasticsearch:9200/book/_stats/store
3、获取同类索引的store大小
log索引是按天滚动新增的,这样可以定义log-*
来查询所有log索引信息
复制代码
1
2http://local.elasticsearch:9200/log-*/_stats/store
二、输出结果
size_in_bytes
: 单位字节
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36{ "_shards": { "total": 3565, "successful": 3565, "failed": 0 }, "_all": { "primaries": { "store": { "size_in_bytes": 34003971241 } }, "total": { "store": { "size_in_bytes": 67412754240 } } }, "indices": { "book-20210107": { "uuid": "m0txeABPUtmNQ3u-VgIRUg", "primaries": { "store": { "size_in_bytes": 5470681 } }, "total": { "store": { "size_in_bytes": 10941362 } } }, ... } }
三、结果详情
1、_shards
分片信息:总数、成功返回数、失败返回数
2、_all
总的统计信息
-
primaries
:主分片上的统计信息 -
total
: 所有分片(主分片+副本分片)上的统计信息
3、indices
索引统计信息
最后
以上就是无语乐曲最近收集整理的关于Elasticsearch - Indices stats 获取索引级别的统计信息之二 【store】存储大小的全部内容,更多相关Elasticsearch内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复