zqc0512
(andy_zhou)
September 11, 2017, 6:19am
1
how can show the shards of per nodes in elasticsearch 5.4.2 cluster with api search(curl)?
zqc0512
(andy_zhou)
September 11, 2017, 6:36am
3
need the result like x-pack monitoring ,no the all
like.
Try something like this: curl -XGET http://localhost:9200/_cat/shards | grep -v UNASSIGNED | awk '{print $8}' | sort | uniq -c
zqc0512
(andy_zhou)
September 11, 2017, 7:03am
5
thanks.
can give a curl to know how about the status of relocating_shards (like x-pack monitoring)
I am not sure that is available via the cat APIs, so that may require a script.
zqc0512
(andy_zhou)
September 11, 2017, 7:08am
7
can give me a example.
thanks so much...
I do not have such an example.
zqc0512
(andy_zhou)
September 11, 2017, 7:55am
10
can't only show as like only know the status of relocation
I am sorry, but I do not understand.