Get segment information
Get low-level information about the Lucene segments in index shards. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.
Path parameters
-
A comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (
*
). To target all data streams and indices, omit this parameter or use*
or_all
.
Query parameters
-
bytes string
The unit used to display byte values.
Values are
b
,kb
,mb
,gb
,tb
, orpb
. -
local boolean
If
true
, the request computes the list of selected nodes from the local cluster state. Iffalse
the list of selected nodes are computed from the cluster state of the master node. In both cases the coordinating node will send requests for further information to each selected node. -
master_timeout string
Period to wait for a connection to the master node.
curl \
-X GET http://api.example.com/_cat/segments/{index}
[
{
"index": "string",
"shard": "string",
"prirep": "string",
"ip": "string",
"id": "string",
"segment": "string",
"generation": "string",
"docs.count": "string",
"docs.deleted": "string",
"": 42.0,
"committed": "string",
"searchable": "string",
"version": "string",
"compound": "string"
}
]