Skip to content

Instantly share code, notes, and snippets.

@barkbay
Created September 27, 2019 09:20
Show Gist options
  • Save barkbay/92bad4568940857dfed607f11e042b2a to your computer and use it in GitHub Desktop.
Save barkbay/92bad4568940857dfed607f11e042b2a to your computer and use it in GitHub Desktop.
Output of GET /_stats/docs?level=shards
{
"_shards" : {
"total" : 4,
"successful" : 4,
"failed" : 0
},
"_all" : {
"primaries" : {
"docs" : {
"count" : 41,
"deleted" : 0
}
},
"total" : {
"docs" : {
"count" : 82,
"deleted" : 0
}
}
},
"indices" : {
".security-7" : {
"uuid" : "rVvRn1FtTWuexps5Os8vfQ",
"primaries" : {
"docs" : {
"count" : 38,
"deleted" : 0
}
},
"total" : {
"docs" : {
"count" : 76,
"deleted" : 0
}
},
"shards" : {
"0" : [
{
"routing" : {
"state" : "STARTED",
"primary" : false,
"node" : "ntwAF7N7TBWyK7bKBGOSuQ",
"relocating_node" : null
},
"docs" : {
"count" : 38,
"deleted" : 0
},
"commit" : {
"id" : "gvWMbleAPO+IEfy3S79Aeg==",
"generation" : 5,
"user_data" : {
"local_checkpoint" : "37",
"max_unsafe_auto_id_timestamp" : "-1",
"min_retained_seq_no" : "38",
"translog_uuid" : "80QYGUH1TcS86ie9997Dmg",
"history_uuid" : "8wOnDt_FRne9s_U6u_HKfA",
"sync_id" : "-htVjL2tTHeWq190wKaZoQ",
"translog_generation" : "1",
"max_seq_no" : "37"
},
"num_docs" : 38
},
"seq_no" : {
"max_seq_no" : 37,
"local_checkpoint" : 37,
"global_checkpoint" : 37
},
"retention_leases" : {
"primary_term" : 1,
"version" : 0,
"leases" : [ ]
},
"shard_path" : {
"state_path" : "/usr/share/elasticsearch/data/nodes/0",
"data_path" : "/usr/share/elasticsearch/data/nodes/0",
"is_custom_data_path" : false
}
},
{
"routing" : {
"state" : "STARTED",
"primary" : true,
"node" : "p_GDIXuwTwybT8PQ00GUvQ",
"relocating_node" : null
},
"docs" : {
"count" : 38,
"deleted" : 0
},
"commit" : {
"id" : "5V9/b4fjCFTLQllBxhwpUg==",
"generation" : 4,
"user_data" : {
"local_checkpoint" : "37",
"max_unsafe_auto_id_timestamp" : "-1",
"min_retained_seq_no" : "38",
"translog_uuid" : "2WZyUcyzT96lCQZMNSe-RA",
"history_uuid" : "8wOnDt_FRne9s_U6u_HKfA",
"sync_id" : "-htVjL2tTHeWq190wKaZoQ",
"translog_generation" : "3",
"max_seq_no" : "37"
},
"num_docs" : 38
},
"seq_no" : {
"max_seq_no" : 37,
"local_checkpoint" : 37,
"global_checkpoint" : 37
},
"retention_leases" : {
"primary_term" : 1,
"version" : 0,
"leases" : [ ]
},
"shard_path" : {
"state_path" : "/usr/share/elasticsearch/data/nodes/0",
"data_path" : "/usr/share/elasticsearch/data/nodes/0",
"is_custom_data_path" : false
}
}
]
}
},
".kibana_1" : {
"uuid" : "UF92d5w_Su64M2gRf747nQ",
"primaries" : {
"docs" : {
"count" : 3,
"deleted" : 0
}
},
"total" : {
"docs" : {
"count" : 6,
"deleted" : 0
}
},
"shards" : {
"0" : [
{
"routing" : {
"state" : "STARTED",
"primary" : true,
"node" : "eM-A2p9hQ_-wzwh82y8sGQ",
"relocating_node" : null
},
"docs" : {
"count" : 3,
"deleted" : 0
},
"commit" : {
"id" : "jXpSAvlAST4GZirOEwOQbw==",
"generation" : 4,
"user_data" : {
"local_checkpoint" : "2",
"max_unsafe_auto_id_timestamp" : "-1",
"min_retained_seq_no" : "3",
"translog_uuid" : "eCfkqomsSqOYtNLPzjqYlg",
"history_uuid" : "oGqi3guUQXKd5ob3mruLzg",
"sync_id" : "h2Rn9FVCSVGPOp0QSAvzag",
"translog_generation" : "3",
"max_seq_no" : "2"
},
"num_docs" : 3
},
"seq_no" : {
"max_seq_no" : 2,
"local_checkpoint" : 2,
"global_checkpoint" : 2
},
"retention_leases" : {
"primary_term" : 1,
"version" : 0,
"leases" : [ ]
},
"shard_path" : {
"state_path" : "/usr/share/elasticsearch/data/nodes/0",
"data_path" : "/usr/share/elasticsearch/data/nodes/0",
"is_custom_data_path" : false
}
},
{
"routing" : {
"state" : "STARTED",
"primary" : false,
"node" : "fxSqocwoS0yAlBWlyX-fXw",
"relocating_node" : null
},
"docs" : {
"count" : 3,
"deleted" : 0
},
"commit" : {
"id" : "Grg9ure6NUQ9ns98Z6xKKA==",
"generation" : 5,
"user_data" : {
"local_checkpoint" : "2",
"max_unsafe_auto_id_timestamp" : "-1",
"min_retained_seq_no" : "3",
"translog_uuid" : "Q8A_WH_0T2KWIMLCMzOGjw",
"history_uuid" : "oGqi3guUQXKd5ob3mruLzg",
"sync_id" : "h2Rn9FVCSVGPOp0QSAvzag",
"translog_generation" : "3",
"max_seq_no" : "2"
},
"num_docs" : 3
},
"seq_no" : {
"max_seq_no" : 2,
"local_checkpoint" : 2,
"global_checkpoint" : 2
},
"retention_leases" : {
"primary_term" : 1,
"version" : 0,
"leases" : [ ]
},
"shard_path" : {
"state_path" : "/usr/share/elasticsearch/data/nodes/0",
"data_path" : "/usr/share/elasticsearch/data/nodes/0",
"is_custom_data_path" : false
}
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment