You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ./esp GET '_cat/shards?v&human&pretty&s=store:desc' | head
index shard prirep state docs store ip node
filebeat-6.5.1-2019.03.07 1 p STARTED 1139273422 264.1gb 192.168.33.197 rdu-es-data-01c
filebeat-6.5.1-2019.03.07 1 r STARTED 1139273422 264.1gb 192.168.33.196 rdu-es-data-01b
filebeat-6.5.1-2019.03.07 0 r STARTED 1139208231 264.1gb 192.168.7.85 rdu-es-data-01e
filebeat-6.5.1-2019.03.07 0 p STARTED 1139208231 264.1gb 192.168.33.195 rdu-es-data-01a
filebeat-6.5.1-2019.03.06 1 p STARTED 899910417 213gb 192.168.33.195 rdu-es-data-01a
filebeat-6.5.1-2019.03.06 1 r STARTED 899910417 203.2gb 192.168.33.196 rdu-es-data-01b
filebeat-6.5.1-2019.03.06 0 p STARTED 899997329 203.2gb 192.168.7.85 rdu-es-data-01e
filebeat-6.5.1-2019.03.06 0 r STARTED 899997329 203gb 192.168.33.197 rdu-es-data-01c
filebeat-6.5.1-2019.03.05 1 r STARTED 825585535 189.8gb 192.168.7.85 rdu-es-data-01e
$ ./esp GET '_cat/shards?v&human&pretty&s=store:desc' | grep -E "index|1e" | head
index shard prirep state docs store ip node
filebeat-6.5.1-2019.03.07 0 r STARTED 1139208231 264.1gb 192.168.7.85 rdu-es-data-01e
filebeat-6.5.1-2019.03.06 0 p STARTED 899997329 203.2gb 192.168.7.85 rdu-es-data-01e
filebeat-6.5.1-2019.03.05 1 r STARTED 825585535 189.8gb 192.168.7.85 rdu-es-data-01e
filebeat-6.5.1-2019.03.08 0 r STARTED 664096376 155.2gb 192.168.7.85 rdu-es-data-01e
filebeat-6.5.1-2019.03.08 2 r STARTED 664062615 153gb 192.168.7.85 rdu-es-data-01e
messaging-6.5.1-2019.03.19 1 r STARTED 158253598 80.6gb 192.168.7.85 rdu-es-data-01e
messaging-6.5.1-2019.03.19 3 p STARTED 158270912 80.6gb 192.168.7.85 rdu-es-data-01e
messaging-6.5.1-2019.03.18 1 r STARTED 155686867 79.2gb 192.168.7.85 rdu-es-data-01e
messaging-6.5.1-2019.03.18 2 p STARTED 155700930 79.2gb 192.168.7.85 rdu-es-data-01e
$ ./esl GET '_cat/indices?pretty&v&s=pri.store.size:desc' | head
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open metricbeat-6.5.1-2019.01.15 kfIOe-JsSrG148hUZru--g 5 1 706222100 0 540.2gb 270gb
green open metricbeat-6.5.1-2019.01.14 6iOWjV06Sou7YcfAvS5JYA 5 1 706442770 0 536.9gb 268.3gb
green open metricbeat-6.5.1-2019.01.13 Xw56kXYnTHizDadjhKTjtg 5 1 705176649 0 532.5gb 266.2gb
green open metricbeat-6.5.1-2019.01.16 jgziDwp7TbGEAnFVs7ELvg 5 1 637363823 0 490.8gb 245.4gb
green open metricbeat-6.5.1-2019.01.12 rkjvwhLGRs6Fvqh6NeQjbw 5 1 624260901 0 471.7gb 235.8gb
green open metricbeat-6.5.1-2019.01.11 lkh9KqDCSvCDjVOduNdv5w 5 1 353330118 0 269.5gb 134.7gb
green open metricbeat-6.5.1-2019.01.17 -9xe28dXQlWSuhMJcK4p_A 5 1 337684266 0 261.1gb 130.6gb
green open filebeat-6.5.1-2019.01.14 KQpNOoC2Q1u0kTlDFJr59w 1 1 363580899 0 240.4gb 120.2gb
green open filebeat-6.5.1-2019.01.13 6mWyr5tGTFW5InKGlyJ7IQ 1 1 351797610 0 230.7gb 115.3gb
help
$ ./esl GET '_cat/indices?pretty&v&help' | head
health | h | current health status
status | s | open/close status
index | i,idx | index name
uuid | id,uuid | index uuid
pri | p,shards.primary,shardsPrimary | number of primary shards
rep | r,shards.replica,shardsReplica | number of replica shards
docs.count | dc,docsCount | available docs
docs.deleted | dd,docsDeleted | deleted docs
creation.date | cd | index creation date (millisecond value)
creation.date.string | cds | index creation date (as string)
explain
$ ./esp POST '_cluster/reroute?explain' -d ' {"commands": [{"allocate_replica": {"index": "messaging-6.5.1-2019.05.15", "shard": 1, "node": "rdu-es-data-01e"}}]}' | jq .explanations [
{
"command": "allocate_replica",
"parameters": {
"index": "messaging-6.5.1-2019.05.15",
"shard": 1,
"node": "rdu-es-data-01e"
},
"decisions": [
{
"decider": "allocate_replica (allocation command)",
"decision": "NO",
"explanation": "all copies of [messaging-6.5.1-2019.05.15][1] are already assigned. Use the move allocation command instead"
}
]
}
]