Skip to content

Commit 1f18a45

Browse files
stefnestorkilfoyle
andauthored
Update diagnose-unassigned-shards.md (#3036)
๐Ÿ‘‹ howdy, team! In order to return JSON as response suggests, the CAT Shards API neesd `&format=json`. TIA! ๐Ÿ™ Co-authored-by: David Kilfoyle <[email protected]>
1 parent 8fff30f commit 1f18a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

โ€Žtroubleshoot/elasticsearch/diagnose-unassigned-shards.mdโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ In order to diagnose the unassigned shards, follow the next steps:
4545
4. View the unassigned shards using the [cat shards API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-shards).
4646

4747
```console
48-
GET _cat/shards?v=true&h=index,shard,prirep,state,node,unassigned.reason&s=state
48+
GET _cat/shards?v=true&h=index,shard,prirep,state,node,unassigned.reason&s=state&format=json
4949
```
5050

5151
The response will look like this:

0 commit comments

Comments
ย (0)