How can show the shards of per nodes in elasticsearch 5.4.2 cluster with api search(curl)?

how can show the shards of per nodes in elasticsearch 5.4.2 cluster with api search(curl)?

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

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.

can give me a example.
thanks so much...

I do not have such an example.

:joy::joy::joy::joy::joy::joy::joy::joy::joy:
thanks. so.

can't only show as like only know the status of relocation

I am sorry, but I do not understand.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.