Get field data cache information
Get the amount of heap memory currently used by the field data cache on every data node in the cluster.
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 nodes stats API.
Path parameters
-
Comma-separated list of fields used to limit returned information. To retrieve all fields, omit this parameter.
GET
/_cat/fielddata/{fields}
curl \
-X GET http://api.example.com/_cat/fielddata/{fields}
Response examples (200)
[
{
"id": "string",
"host": "string",
"ip": "string",
"node": "string",
"field": "string",
"size": "string"
}
]
Response examples (200)
Single field data
A successful response from `GET /_cat/fielddata?v=true&fields=body`. You can specify an individual field in the request body or URL path. This example retrieves heap memory size information for the `body` field.
id host ip node field size
Nqk-6inXQq-OxUfOUI8jNQ 127.0.0.1 127.0.0.1 Nqk-6in body 544b
A successful response from `GET /_cat/fielddata/body,soul?v=true`. You can specify a comma-separated list of fields in the request body or URL path. This example retrieves heap memory size information for the `body` and `soul` fields. To get information for all fields, run `GET /_cat/fielddata?v=true`.
id host ip node field size
Nqk-6inXQq-OxUfOUI8jNQ 127.0.0.1 127.0.0.1 Nqk-6in body 544b
Nqk-6inXQq-OxUfOUI8jNQ 127.0.0.1 127.0.0.1 Nqk-6in soul 480b