2014-05-05 10:23:00 -04:00
|
|
|
[[cat-fielddata]]
|
2014-05-16 15:43:35 -04:00
|
|
|
== cat fielddata
|
2014-05-05 10:23:00 -04:00
|
|
|
|
2015-02-06 01:31:17 -05:00
|
|
|
`fielddata` shows how much heap memory is currently being used by fielddata
|
|
|
|
on every data node in the cluster.
|
2014-05-05 10:23:00 -04:00
|
|
|
|
2015-07-14 12:14:09 -04:00
|
|
|
[source,sh]
|
2014-05-05 10:23:00 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
% curl '192.168.56.10:9200/_cat/fielddata?v'
|
2016-09-16 08:32:03 -04:00
|
|
|
id host ip node field size
|
|
|
|
bGG90GEiSGeezlbrcugAYQ myhost1 10.20.100.200 bGG90GE body 159.8kb
|
|
|
|
bGG90GEiSGeezlbrcugAYQ myhost1 10.20.100.200 bGG90GE text 225.7kb
|
|
|
|
H5dfFeANQaCL6xC8VxjAwg myhost2 10.20.100.201 H5dfFeA body 159.8kb
|
|
|
|
H5dfFeANQaCL6xC8VxjAwg myhost2 10.20.100.201 H5dfFeA text 275.3kb
|
|
|
|
I8hydUG3R0q1AJ-HUEvkSQ myhost3 10.20.100.202 I8hydUG body 109.2kb
|
|
|
|
I8hydUG3R0q1AJ-HUEvkSQ myhost3 10.20.100.202 I8hydUG text 175.3kb
|
2014-05-05 10:23:00 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
Fields can be specified either as a query parameter, or in the URL path:
|
|
|
|
|
2015-07-14 12:14:09 -04:00
|
|
|
[source,sh]
|
2014-05-05 10:23:00 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
% curl '192.168.56.10:9200/_cat/fielddata?v&fields=body'
|
2016-09-16 08:32:03 -04:00
|
|
|
id host ip node field size
|
|
|
|
bGG90GEiSGeezlbrcugAYQ myhost1 10.20.100.200 bGG90GE body 159.8kb
|
|
|
|
H5dfFeANQaCL6xC8VxjAwg myhost2 10.20.100.201 H5dfFeA body 159.8kb
|
|
|
|
I8hydUG3R0q1AJ-HUEvkSQ myhost3 10.20.100.202 I8hydUG body 109.2kb
|
2014-05-05 10:23:00 -04:00
|
|
|
|
|
|
|
% curl '192.168.56.10:9200/_cat/fielddata/body,text?v'
|
2016-09-16 08:32:03 -04:00
|
|
|
id host ip node field size
|
|
|
|
bGG90GEiSGeezlbrcugAYQ myhost1 10.20.100.200 bGG90GE body 159.8kb
|
|
|
|
bGG90GEiSGeezlbrcugAYQ myhost1 10.20.100.200 bGG90GE text 225.7kb
|
|
|
|
H5dfFeANQaCL6xC8VxjAwg myhost2 10.20.100.201 H5dfFeA body 159.8kb
|
|
|
|
H5dfFeANQaCL6xC8VxjAwg myhost2 10.20.100.201 H5dfFeA text 275.3kb
|
|
|
|
I8hydUG3R0q1AJ-HUEvkSQ myhost3 10.20.100.202 I8hydUG body 109.2kb
|
|
|
|
I8hydUG3R0q1AJ-HUEvkSQ myhost3 10.20.100.202 I8hydUG text 175.3kb
|
2014-05-05 10:23:00 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
|
2016-04-20 12:10:01 -04:00
|
|
|
The output shows the individual fielddata for the`body` and `text` fields, one row per field per node.
|