stats.asciidoc 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879
  1. [[cluster-stats]]
  2. === Cluster stats API
  3. ++++
  4. <titleabbrev>Cluster stats</titleabbrev>
  5. ++++
  6. Returns cluster statistics.
  7. [[cluster-stats-api-request]]
  8. ==== {api-request-title}
  9. `GET /_cluster/stats` +
  10. `GET /_cluster/stats/nodes/<node_filter>`
  11. [[cluster-stats-api-prereqs]]
  12. ==== {api-prereq-title}
  13. * If the {es} {security-features} are enabled, you must have the `monitor` or
  14. `manage` <<privileges-list-cluster,cluster privilege>> to use this API.
  15. [[cluster-stats-api-desc]]
  16. ==== {api-description-title}
  17. The Cluster Stats API allows to retrieve statistics from a cluster wide
  18. perspective. The API returns basic index metrics (shard numbers, store size,
  19. memory usage) and information about the current nodes that form the cluster
  20. (number, roles, os, jvm versions, memory usage, cpu and installed plugins).
  21. [[cluster-stats-api-path-params]]
  22. ==== {api-path-parms-title}
  23. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=node-filter]
  24. [[cluster-stats-api-query-params]]
  25. ==== {api-query-parms-title}
  26. `timeout`::
  27. (Optional, <<time-units, time units>>)
  28. Period to wait for each node to respond. If a node does not respond before its
  29. timeout expires, the response does not include its stats. However, timed out
  30. nodes are included in the response's `_nodes.failed` property. Defaults to no
  31. timeout.
  32. [role="child_attributes"]
  33. [[cluster-stats-api-response-body]]
  34. ==== {api-response-body-title}
  35. `_nodes`::
  36. (object)
  37. Contains statistics about the number of nodes selected by the request's
  38. <<cluster-nodes,node filters>>.
  39. +
  40. .Properties of `_nodes`
  41. [%collapsible%open]
  42. ====
  43. `total`::
  44. (integer)
  45. Total number of nodes selected by the request.
  46. `successful`::
  47. (integer)
  48. Number of nodes that responded successfully to the request.
  49. `failed`::
  50. (integer)
  51. Number of nodes that rejected the request or failed to respond. If this value
  52. is not `0`, a reason for the rejection or failure is included in the response.
  53. ====
  54. `cluster_name`::
  55. (string)
  56. Name of the cluster, based on the <<cluster-name>> setting.
  57. `cluster_uuid`::
  58. (string)
  59. Unique identifier for the cluster.
  60. `timestamp`::
  61. (integer)
  62. {wikipedia}/Unix_time[Unix timestamp], in milliseconds, of
  63. the last time the cluster statistics were refreshed.
  64. `status`::
  65. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=cluster-health-status]
  66. +
  67. See <<cluster-health>>.
  68. [[cluster-stats-api-response-body-indices]]
  69. `indices`::
  70. (object)
  71. Contains statistics about indices with shards assigned to selected nodes.
  72. +
  73. .Properties of `indices`
  74. [%collapsible%open]
  75. ====
  76. `count`::
  77. (integer)
  78. Total number of indices with shards assigned to selected nodes.
  79. `shards`::
  80. (object)
  81. Contains statistics about shards assigned to selected nodes.
  82. +
  83. .Properties of `shards`
  84. [%collapsible%open]
  85. =====
  86. `total`::
  87. (integer)
  88. Total number of shards assigned to selected nodes.
  89. `primaries`::
  90. (integer)
  91. Number of primary shards assigned to selected nodes.
  92. `replication`::
  93. (float)
  94. Ratio of replica shards to primary shards across all selected nodes.
  95. `index`::
  96. (object)
  97. Contains statistics about shards assigned to selected nodes.
  98. +
  99. .Properties of `index`
  100. [%collapsible%open]
  101. ======
  102. `shards`::
  103. (object)
  104. Contains statistics about the number of shards assigned to selected nodes.
  105. +
  106. .Properties of `shards`
  107. [%collapsible%open]
  108. =======
  109. `min`::
  110. (integer)
  111. Minimum number of shards in an index, counting only shards assigned to
  112. selected nodes.
  113. `max`::
  114. (integer)
  115. Maximum number of shards in an index, counting only shards assigned to
  116. selected nodes.
  117. `avg`::
  118. (float)
  119. Mean number of shards in an index, counting only shards assigned to
  120. selected nodes.
  121. =======
  122. `primaries`::
  123. (object)
  124. Contains statistics about the number of primary shards assigned to selected
  125. nodes.
  126. +
  127. .Properties of `primaries`
  128. [%collapsible%open]
  129. =======
  130. `min`::
  131. (integer)
  132. Minimum number of primary shards in an index, counting only shards assigned
  133. to selected nodes.
  134. `max`::
  135. (integer)
  136. Maximum number of primary shards in an index, counting only shards assigned
  137. to selected nodes.
  138. `avg`::
  139. (float)
  140. Mean number of primary shards in an index, counting only shards assigned to
  141. selected nodes.
  142. =======
  143. `replication`::
  144. (object)
  145. Contains statistics about the number of replication shards assigned to selected
  146. nodes.
  147. +
  148. .Properties of `replication`
  149. [%collapsible%open]
  150. =======
  151. `min`::
  152. (float)
  153. Minimum replication factor in an index, counting only shards assigned to
  154. selected nodes.
  155. `max`::
  156. (float)
  157. Maximum replication factor in an index, counting only shards assigned to
  158. selected nodes.
  159. `avg`::
  160. (float)
  161. Mean replication factor in an index, counting only shards assigned to selected
  162. nodes.
  163. =======
  164. ======
  165. =====
  166. `docs`::
  167. (object)
  168. Contains counts for documents in selected nodes.
  169. +
  170. .Properties of `docs`
  171. [%collapsible%open]
  172. =====
  173. `count`::
  174. (integer)
  175. Total number of non-deleted documents across all primary shards assigned to
  176. selected nodes.
  177. +
  178. This number is based on documents in Lucene segments and may include documents
  179. from nested fields.
  180. `deleted`::
  181. (integer)
  182. Total number of deleted documents across all primary shards assigned to
  183. selected nodes.
  184. +
  185. This number is based on documents in Lucene segments. {es} reclaims the disk
  186. space of deleted Lucene documents when a segment is merged.
  187. `total_size_in_bytes`::
  188. (integer)
  189. Total size in bytes across all primary shards assigned to selected nodes.
  190. =====
  191. `store`::
  192. (object)
  193. Contains statistics about the size of shards assigned to selected nodes.
  194. +
  195. .Properties of `store`
  196. [%collapsible%open]
  197. =====
  198. `size`::
  199. (<<byte-units, byte units>>)
  200. Total size of all shards assigned to selected nodes.
  201. `size_in_bytes`::
  202. (integer)
  203. Total size, in bytes, of all shards assigned to selected nodes.
  204. `total_data_set_size`::
  205. (<<byte-units, byte units>>)
  206. Total data set size of all shards assigned to selected nodes.
  207. This includes the size of shards not stored fully on the nodes, such as the
  208. cache for <<partially-mounted,partially mounted indices>>.
  209. `total_data_set_size_in_bytes`::
  210. (integer)
  211. Total data set size, in bytes, of all shards assigned to selected nodes.
  212. This includes the size of shards not stored fully on the nodes, such as the
  213. cache for <<partially-mounted,partially mounted indices>>.
  214. `reserved`::
  215. (<<byte-units,byte value>>)
  216. A prediction of how much larger the shard stores will eventually grow due to
  217. ongoing peer recoveries, restoring snapshots, and similar activities.
  218. `reserved_in_bytes`::
  219. (integer)
  220. A prediction, in bytes, of how much larger the shard stores will eventually
  221. grow due to ongoing peer recoveries, restoring snapshots, and similar
  222. activities.
  223. =====
  224. `fielddata`::
  225. (object)
  226. Contains statistics about the <<modules-fielddata, field data cache>> of selected nodes.
  227. +
  228. .Properties of `fielddata`
  229. [%collapsible%open]
  230. =====
  231. `memory_size`::
  232. (<<byte-units, byte units>>)
  233. Total amount of memory used for the field data cache across all shards
  234. assigned to selected nodes.
  235. `memory_size_in_bytes`::
  236. (integer)
  237. Total amount, in bytes, of memory used for the field data cache across all
  238. shards assigned to selected nodes.
  239. `evictions`::
  240. (integer)
  241. Total number of evictions from the field data cache across all shards assigned
  242. to selected nodes.
  243. `global_ordinals.build_time`::
  244. (<<time-units,time unit>>)
  245. The total time spent building global ordinals for all fields.
  246. `global_ordinals.build_time_in_millis`::
  247. (integer)
  248. The total time, in milliseconds, spent building global ordinals for all fields.
  249. `global_ordinals.fields.[field-name].build_time`::
  250. (<<time-units,time unit>>)
  251. The total time spent building global ordinals for field with specified name.
  252. `global_ordinals.fields.[field-name].build_time_in_millis`::
  253. (integer)
  254. The total time, in milliseconds, spent building global ordinals for field with specified name.
  255. `global_ordinals.fields.[field-name].shard_max_value_count`::
  256. (long)
  257. The total time spent building global ordinals for field with specified name.
  258. =====
  259. `query_cache`::
  260. (object)
  261. Contains statistics about the query cache of selected nodes.
  262. +
  263. .Properties of `query_cache`
  264. [%collapsible%open]
  265. =====
  266. `memory_size`::
  267. (<<byte-units, byte units>>)
  268. Total amount of memory used for the query cache across all shards assigned to
  269. selected nodes.
  270. `memory_size_in_bytes`::
  271. (integer)
  272. Total amount, in bytes, of memory used for the query cache across all shards
  273. assigned to selected nodes.
  274. `total_count`::
  275. (integer)
  276. Total count of hits and misses in the query cache across all shards assigned to
  277. selected nodes.
  278. `hit_count`::
  279. (integer)
  280. Total count of query cache hits across all shards assigned to selected nodes.
  281. `miss_count`::
  282. (integer)
  283. Total count of query cache misses across all shards assigned to selected nodes.
  284. `cache_size`::
  285. (integer)
  286. Total number of entries currently in the query cache across all shards assigned
  287. to selected nodes.
  288. `cache_count`::
  289. (integer)
  290. Total number of entries added to the query cache across all shards assigned
  291. to selected nodes. This number includes current and evicted entries.
  292. `evictions`::
  293. (integer)
  294. Total number of query cache evictions across all shards assigned to selected
  295. nodes.
  296. =====
  297. `completion`::
  298. (object)
  299. Contains statistics about memory used for completion in selected nodes.
  300. +
  301. .Properties of `completion`
  302. [%collapsible%open]
  303. =====
  304. `size`::
  305. (<<byte-units, byte units>>)
  306. Total amount of memory used for completion across all shards assigned to
  307. selected nodes.
  308. `size_in_bytes`::
  309. (integer)
  310. Total amount, in bytes, of memory used for completion across all shards assigned
  311. to selected nodes.
  312. =====
  313. `segments`::
  314. (object)
  315. Contains statistics about segments in selected nodes.
  316. +
  317. .Properties of `segments`
  318. [%collapsible%open]
  319. =====
  320. `count`::
  321. (integer)
  322. Total number of segments across all shards assigned to selected nodes.
  323. `memory`::
  324. (<<byte-units, byte units>>)
  325. Total amount of memory used for segments across all shards assigned to selected
  326. nodes.
  327. `memory_in_bytes`::
  328. (integer)
  329. Total amount, in bytes, of memory used for segments across all shards assigned to
  330. selected nodes.
  331. `terms_memory`::
  332. (<<byte-units, byte units>>)
  333. Total amount of memory used for terms across all shards assigned to selected
  334. nodes.
  335. `terms_memory_in_bytes`::
  336. (integer)
  337. Total amount, in bytes, of memory used for terms across all shards assigned to
  338. selected nodes.
  339. `stored_fields_memory`::
  340. (<<byte-units, byte units>>)
  341. Total amount of memory used for stored fields across all shards assigned to
  342. selected nodes.
  343. `stored_fields_memory_in_bytes`::
  344. (integer)
  345. Total amount, in bytes, of memory used for stored fields across all shards
  346. assigned to selected nodes.
  347. `term_vectors_memory`::
  348. (<<byte-units, byte units>>)
  349. Total amount of memory used for term vectors across all shards assigned to
  350. selected nodes.
  351. `term_vectors_memory_in_bytes`::
  352. (integer)
  353. Total amount, in bytes, of memory used for term vectors across all shards
  354. assigned to selected nodes.
  355. `norms_memory`::
  356. (<<byte-units, byte units>>)
  357. Total amount of memory used for normalization factors across all shards assigned
  358. to selected nodes.
  359. `norms_memory_in_bytes`::
  360. (integer)
  361. Total amount, in bytes, of memory used for normalization factors across all
  362. shards assigned to selected nodes.
  363. `points_memory`::
  364. (<<byte-units, byte units>>)
  365. Total amount of memory used for points across all shards assigned to selected
  366. nodes.
  367. `points_memory_in_bytes`::
  368. (integer)
  369. Total amount, in bytes, of memory used for points across all shards assigned to
  370. selected nodes.
  371. `doc_values_memory`::
  372. (<<byte-units, byte units>>)
  373. Total amount of memory used for doc values across all shards assigned to
  374. selected nodes.
  375. `doc_values_memory_in_bytes`::
  376. (integer)
  377. Total amount, in bytes, of memory used for doc values across all shards assigned
  378. to selected nodes.
  379. `index_writer_memory`::
  380. (<<byte-units, byte units>>)
  381. Total amount of memory used by all index writers across all shards assigned to
  382. selected nodes.
  383. `index_writer_memory_in_bytes`::
  384. (integer)
  385. Total amount, in bytes, of memory used by all index writers across all shards
  386. assigned to selected nodes.
  387. `version_map_memory`::
  388. (<<byte-units, byte units>>)
  389. Total amount of memory used by all version maps across all shards assigned to
  390. selected nodes.
  391. `version_map_memory_in_bytes`::
  392. (integer)
  393. Total amount, in bytes, of memory used by all version maps across all shards
  394. assigned to selected nodes.
  395. `fixed_bit_set`::
  396. (<<byte-units, byte units>>)
  397. Total amount of memory used by fixed bit sets across all shards assigned to
  398. selected nodes.
  399. +
  400. Fixed bit sets are used for nested object field types and
  401. type filters for <<parent-join,join>> fields.
  402. `fixed_bit_set_memory_in_bytes`::
  403. (integer)
  404. Total amount of memory, in bytes, used by fixed bit sets across all shards
  405. assigned to selected nodes.
  406. `max_unsafe_auto_id_timestamp`::
  407. (integer)
  408. {wikipedia}/Unix_time[Unix timestamp], in milliseconds, of
  409. the most recently retried indexing request.
  410. `file_sizes`::
  411. (object)
  412. This object is not populated by the cluster stats API.
  413. +
  414. To get information on segment files, use the <<cluster-nodes-stats,node stats
  415. API>>.
  416. =====
  417. `mappings`::
  418. (object)
  419. Contains statistics about <<mapping,field mappings>> in selected nodes.
  420. +
  421. .Properties of `mappings`
  422. [%collapsible%open]
  423. =====
  424. `total_field_count`::
  425. (integer)
  426. Total number of fields in all non-system indices.
  427. `total_deduplicated_field_count`::
  428. (integer)
  429. Total number of fields in all non-system indices, accounting for mapping deduplication.
  430. `total_deduplicated_mapping_size`::
  431. (<<byte-units, byte units>>)
  432. Total size of all mappings after deduplication and compression.
  433. `total_deduplicated_mapping_size_in_bytes`::
  434. (integer)
  435. Total size of all mappings, in bytes, after deduplication and compression.
  436. `field_types`::
  437. (array of objects)
  438. Contains statistics about <<mapping-types,field data types>> used in selected
  439. nodes.
  440. +
  441. .Properties of `field_types` objects
  442. [%collapsible%open]
  443. ======
  444. `name`::
  445. (string)
  446. Field data type used in selected nodes.
  447. `count`::
  448. (integer)
  449. Number of fields mapped to the field data type in selected nodes.
  450. `index_count`::
  451. (integer)
  452. Number of indices containing a mapping of the field data type in selected nodes.
  453. `indexed_vector_count`::
  454. (integer)
  455. For dense_vector field types, number of indexed vector types in selected nodes.
  456. `indexed_vector_dim_min`::
  457. (integer)
  458. For dense_vector field types, the minimum dimension of all indexed vector types in selected nodes.
  459. `indexed_vector_dim_max`::
  460. (integer)
  461. For dense_vector field types, the maximum dimension of all indexed vector types in selected nodes.
  462. `script_count`::
  463. (integer)
  464. Number of fields that declare a script.
  465. `lang`::
  466. (array of strings)
  467. Script languages used for the optional scripts
  468. `lines_max`::
  469. (integer)
  470. Maximum number of lines for a single field script
  471. `lines_total`::
  472. (integer)
  473. Total number of lines for the scripts
  474. `chars_max`::
  475. (integer)
  476. Maximum number of characters for a single field script
  477. `chars_total`::
  478. (integer)
  479. Total number of characters for the scripts
  480. `source_max`::
  481. (integer)
  482. Maximum number of accesses to _source for a single field script
  483. `source_total`::
  484. (integer)
  485. Total number of accesses to _source for the scripts
  486. `doc_max`::
  487. (integer)
  488. Maximum number of accesses to doc_values for a single field script
  489. `doc_total`::
  490. (integer)
  491. Total number of accesses to doc_values for the scripts
  492. ======
  493. `runtime_field_types`::
  494. (array of objects)
  495. Contains statistics about <<runtime-mapping-fields, runtime field data types>> used in selected
  496. nodes.
  497. +
  498. .Properties of `runtime_field_types` objects
  499. [%collapsible%open]
  500. ======
  501. `name`::
  502. (string)
  503. Field data type used in selected nodes.
  504. `count`::
  505. (integer)
  506. Number of runtime fields mapped to the field data type in selected nodes.
  507. `index_count`::
  508. (integer)
  509. Number of indices containing a mapping of the runtime field data type in selected nodes.
  510. `scriptless_count`::
  511. (integer)
  512. Number of runtime fields that don't declare a script.
  513. `shadowed_count`::
  514. (integer)
  515. Number of runtime fields that shadow an indexed field.
  516. `lang`::
  517. (array of strings)
  518. Script languages used for the runtime fields scripts
  519. `lines_max`::
  520. (integer)
  521. Maximum number of lines for a single runtime field script
  522. `lines_total`::
  523. (integer)
  524. Total number of lines for the scripts that define the current runtime field data type
  525. `chars_max`::
  526. (integer)
  527. Maximum number of characters for a single runtime field script
  528. `chars_total`::
  529. (integer)
  530. Total number of characters for the scripts that define the current runtime field data type
  531. `source_max`::
  532. (integer)
  533. Maximum number of accesses to _source for a single runtime field script
  534. `source_total`::
  535. (integer)
  536. Total number of accesses to _source for the scripts that define the current runtime field data type
  537. `doc_max`::
  538. (integer)
  539. Maximum number of accesses to doc_values for a single runtime field script
  540. `doc_total`::
  541. (integer)
  542. Total number of accesses to doc_values for the scripts that define the current runtime field data type
  543. ======
  544. =====
  545. `analysis`::
  546. (object)
  547. Contains statistics about <<analyzer-anatomy,analyzers and analyzer components>>
  548. used in selected nodes.
  549. +
  550. .Properties of `analysis`
  551. [%collapsible%open]
  552. =====
  553. `char_filter_types`::
  554. (array of objects)
  555. Contains statistics about <<analysis-charfilters,character filter>> types used
  556. in selected nodes.
  557. +
  558. .Properties of `char_filter_types` objects
  559. [%collapsible%open]
  560. ======
  561. `name`::
  562. (string)
  563. Character filter type used in selected nodes.
  564. `count`::
  565. (integer)
  566. Number of analyzers or normalizers using the character filter type in selected
  567. nodes.
  568. `index_count`::
  569. (integer)
  570. Number of indices the character filter type in selected nodes.
  571. ======
  572. `tokenizer_types`::
  573. (array of objects)
  574. Contains statistics about <<analysis-tokenizers,tokenizer>> types used in
  575. selected nodes.
  576. +
  577. .Properties of `tokenizer_types` objects
  578. [%collapsible%open]
  579. ======
  580. `name`::
  581. (string)
  582. Tokenizer type used in selected nodes.
  583. `count`::
  584. (integer)
  585. Number of analyzers or normalizers using the tokenizer type in selected nodes.
  586. `index_count`::
  587. (integer)
  588. Number of indices using the tokenizer type in selected nodes.
  589. ======
  590. `filter_types`::
  591. (array of objects)
  592. Contains statistics about <<analysis-tokenfilters,token filter>> types used in
  593. selected nodes.
  594. +
  595. .Properties of `filter_types` objects
  596. [%collapsible%open]
  597. ======
  598. `name`::
  599. (string)
  600. Token filter type used in selected nodes.
  601. `count`::
  602. (integer)
  603. Number of analyzers or normalizers using the token filter type in selected
  604. nodes.
  605. `index_count`::
  606. (integer)
  607. Number of indices using the token filter type in selected nodes.
  608. ======
  609. `analyzer_types`::
  610. (array of objects)
  611. Contains statistics about <<analyzer-anatomy,analyzer>> types used in selected
  612. nodes.
  613. +
  614. .Properties of `analyzer_types` objects
  615. [%collapsible%open]
  616. ======
  617. `name`::
  618. (string)
  619. Analyzer type used in selected nodes.
  620. `count`::
  621. (integer)
  622. Occurrences of the analyzer type in selected nodes.
  623. `index_count`::
  624. (integer)
  625. Number of indices using the analyzer type in selected nodes.
  626. ======
  627. `built_in_char_filters`::
  628. (array of objects)
  629. Contains statistics about built-in <<analysis-charfilters,character filters>>
  630. used in selected nodes.
  631. +
  632. .Properties of `built_in_char_filters` objects
  633. [%collapsible%open]
  634. ======
  635. `name`::
  636. (string)
  637. Built-in character filter used in selected nodes.
  638. `count`::
  639. (integer)
  640. Number of analyzers or normalizers using the built-in character filter in
  641. selected nodes.
  642. `index_count`::
  643. (integer)
  644. Number of indices using the built-in character filter in selected nodes.
  645. ======
  646. `built_in_tokenizers`::
  647. (array of objects)
  648. Contains statistics about built-in <<analysis-tokenizers,tokenizers>> used in
  649. selected nodes.
  650. +
  651. .Properties of `built_in_tokenizers` objects
  652. [%collapsible%open]
  653. ======
  654. `name`::
  655. (string)
  656. Built-in tokenizer used in selected nodes.
  657. `count`::
  658. (integer)
  659. Number of analyzers or normalizers using the built-in tokenizer in selected
  660. nodes.
  661. `index_count`::
  662. (integer)
  663. Number of indices using the built-in tokenizer in selected nodes.
  664. ======
  665. `built_in_filters`::
  666. (array of objects)
  667. Contains statistics about built-in <<analysis-tokenfilters,token filters>> used
  668. in selected nodes.
  669. +
  670. .Properties of `built_in_filters` objects
  671. [%collapsible%open]
  672. ======
  673. `name`::
  674. (string)
  675. Built-in token filter used in selected nodes.
  676. `count`::
  677. (integer)
  678. Number of analyzers or normalizers using the built-in token filter in selected
  679. nodes.
  680. `index_count`::
  681. (integer)
  682. Number of indices using the built-in token filter in selected nodes.
  683. ======
  684. `built_in_analyzers`::
  685. (array of objects)
  686. Contains statistics about built-in <<analysis-analyzers,analyzers>> used in
  687. selected nodes.
  688. +
  689. .Properties of `built_in_analyzers` objects
  690. [%collapsible%open]
  691. ======
  692. `name`::
  693. (string)
  694. Built-in analyzer used in selected nodes.
  695. `count`::
  696. (integer)
  697. Occurrences of the built-in analyzer in selected nodes.
  698. `index_count`::
  699. (integer)
  700. Number of indices using the built-in analyzer in selected nodes.
  701. ======
  702. `synonyms`::
  703. (object)
  704. Contains statistics about synonyms defined in <<analysis-synonym-tokenfilter,synonym>> and <<analysis-synonym-graph-tokenfilter,synonym graph>> token filters configuration.
  705. +
  706. .Properties of `synonyms` objects
  707. [%collapsible%open]
  708. ======
  709. `inline`::
  710. (object)
  711. Inline synonyms defined using `synonyms` configuration in synonym or synonym graph token filters.
  712. +
  713. .Properties of `inline` objects
  714. [%collapsible%open]
  715. =======
  716. `count`::
  717. (integer)
  718. Occurrences of inline synonyms configuration in selected nodes.
  719. Each inline synonyms configuration will be counted separately, regardless of the synonyms defined.
  720. Two synonyms configurations with the same synonyms will count as separate ocurrences.
  721. `index_count`::
  722. (integer)
  723. Number of indices that use inline synonyms configuration for synonyms token filters.
  724. =======
  725. `paths`::
  726. (object)
  727. Contains statistics about synonym files defined as `synonyms_path` in <<analysis-synonym-tokenfilter,synonym>> and <<analysis-synonym-graph-tokenfilter,synonym graph>> token filters configuration.
  728. +
  729. .Properties of `paths` objects
  730. [%collapsible%open]
  731. =======
  732. `count`::
  733. (integer)
  734. Occurrences of unique synonym paths in selected nodes.
  735. `index_count`::
  736. (integer)
  737. Number of indices that use `synonyms_path` configuration for synonyms token filters.
  738. =======
  739. `sets`::
  740. (object)
  741. Contains statistics about synonyms sets configured as `synonyms_set` in <<analysis-synonym-tokenfilter,synonym>> and <<analysis-synonym-graph-tokenfilter,synonym graph>> token filters configuration.
  742. +
  743. .Properties of `sets` objects
  744. [%collapsible%open]
  745. =======
  746. `count`::
  747. (integer)
  748. Occurrences of unique synonyms sets in selected nodes.
  749. `index_count`::
  750. (integer)
  751. Number of indices that use `synonyms_set` configuration for synonyms token filters.
  752. =======
  753. ======
  754. =====
  755. `search`::
  756. (object)
  757. Contains usage statistics about search requests submitted to selected nodes
  758. that acted as coordinator during the search execution. Search requests are
  759. tracked when they are successfully parsed, regardless of their results:
  760. requests that yield errors after parsing contribute to the usage stats, as
  761. well as requests that don't access any data.
  762. +
  763. .Properties of `search` objects
  764. [%collapsible%open]
  765. =====
  766. `total`::
  767. (integer)
  768. Total number of incoming search requests. Search requests that don't specify a
  769. request body are not counted.
  770. `queries`::
  771. (object)
  772. Query types used in selected nodes. For each query, name and number of times
  773. it's been used within the `query` or `post_filter` section is reported. Queries
  774. are counted once per search request, meaning that if the same query type is used
  775. multiple times in the same search request, its counter will be incremented by 1
  776. rather than by the number of times it's been used in that individual search request.
  777. `sections`::
  778. (object)
  779. Search sections used in selected nodes. For each section, name and number of times
  780. it's been used is reported.
  781. =====
  782. `dense_vector`::
  783. (object)
  784. Contains statistics about indexed dense vector used in selected nodes.
  785. +
  786. .Properties of `dense_vector`
  787. [%collapsible%open]
  788. =====
  789. `value_count`::
  790. (integer)
  791. Total number of dense vector indexed in selected nodes.
  792. =====
  793. ====
  794. [[cluster-stats-api-response-body-nodes]]
  795. `nodes`::
  796. (object)
  797. Contains statistics about nodes selected by the request's <<cluster-nodes,node
  798. filters>>.
  799. +
  800. .Properties of `nodes`
  801. [%collapsible%open]
  802. ====
  803. `count`::
  804. (object)
  805. Contains counts for nodes selected by the request's <<cluster-nodes,node
  806. filters>>.
  807. +
  808. .Properties of `count`
  809. [%collapsible%open]
  810. =====
  811. `total`::
  812. (integer)
  813. Total number of selected nodes.
  814. `coordinating_only`::
  815. (integer)
  816. Number of selected nodes without a <<modules-node,role>>. These nodes are
  817. considered <<coordinating-only-node,coordinating only>> nodes.
  818. `<role>`::
  819. (integer)
  820. Number of selected nodes with the role. For a list of roles, see
  821. <<modules-node>>.
  822. =====
  823. `versions`::
  824. (array of strings)
  825. Array of {es} versions used on selected nodes.
  826. `os`::
  827. (object)
  828. Contains statistics about the operating systems used by selected nodes.
  829. +
  830. .Properties of `os`
  831. [%collapsible%open]
  832. =====
  833. `available_processors`::
  834. (integer)
  835. Number of processors available to JVM across all selected nodes.
  836. `allocated_processors`::
  837. (integer)
  838. Number of processors used to calculate thread pool size across all selected
  839. nodes.
  840. +
  841. This number can be set with the `processors` setting of a node and defaults to
  842. the number of processors reported by the OS. In both cases, this number will
  843. never be larger than `32`.
  844. `names`::
  845. (array of objects)
  846. Contains statistics about operating systems used by selected nodes.
  847. +
  848. .Properties of `names`
  849. [%collapsible%open]
  850. ======
  851. `name`:::
  852. (string)
  853. Name of an operating system used by one or more selected nodes.
  854. `count`:::
  855. (string)
  856. Number of selected nodes using the operating system.
  857. ======
  858. `pretty_names`::
  859. (array of objects)
  860. Contains statistics about operating systems used by selected nodes.
  861. +
  862. .Properties of `pretty_names`
  863. [%collapsible%open]
  864. ======
  865. `pretty_name`:::
  866. (string)
  867. Human-readable name of an operating system used by one or more selected nodes.
  868. `count`:::
  869. (string)
  870. Number of selected nodes using the operating system.
  871. ======
  872. `architectures`::
  873. (array of objects)
  874. Contains statistics about processor architectures (for example, x86_64 or
  875. aarch64) used by selected nodes.
  876. +
  877. .Properties of `architectures`
  878. [%collapsible%open]
  879. ======
  880. `arch`:::
  881. (string)
  882. Name of an architecture used by one or more selected nodes.
  883. `count`:::
  884. (string)
  885. Number of selected nodes using the architecture.
  886. ======
  887. `mem`::
  888. (object)
  889. Contains statistics about memory used by selected nodes.
  890. +
  891. .Properties of `mem`
  892. [%collapsible%open]
  893. ======
  894. `total`::
  895. (<<byte-units, byte units>>)
  896. Total amount of physical memory across all selected nodes.
  897. `total_in_bytes`::
  898. (integer)
  899. Total amount, in bytes, of physical memory across all selected nodes.
  900. `adjusted_total`::
  901. (<<byte-units,byte value>>)
  902. Total amount of memory across all selected nodes, but using the value specified
  903. using the `es.total_memory_bytes` system property instead of measured total
  904. memory for those nodes where that system property was set.
  905. `adjusted_total_in_bytes`::
  906. (integer)
  907. Total amount, in bytes, of memory across all selected nodes, but using the
  908. value specified using the `es.total_memory_bytes` system property instead
  909. of measured total memory for those nodes where that system property was set.
  910. `free`::
  911. (<<byte-units, byte units>>)
  912. Amount of free physical memory across all selected nodes.
  913. `free_in_bytes`::
  914. (integer)
  915. Amount, in bytes, of free physical memory across all selected nodes.
  916. `used`::
  917. (<<byte-units, byte units>>)
  918. Amount of physical memory in use across all selected nodes.
  919. `used_in_bytes`::
  920. (integer)
  921. Amount, in bytes, of physical memory in use across all selected nodes.
  922. `free_percent`::
  923. (integer)
  924. Percentage of free physical memory across all selected nodes.
  925. `used_percent`::
  926. (integer)
  927. Percentage of physical memory in use across all selected nodes.
  928. ======
  929. =====
  930. `process`::
  931. (object)
  932. Contains statistics about processes used by selected nodes.
  933. +
  934. .Properties of `process`
  935. [%collapsible%open]
  936. =====
  937. `cpu`::
  938. (object)
  939. Contains statistics about CPU used by selected nodes.
  940. +
  941. .Properties of `cpu`
  942. [%collapsible%open]
  943. ======
  944. `percent`::
  945. (integer)
  946. Percentage of CPU used across all selected nodes. Returns `-1` if
  947. not supported.
  948. ======
  949. `open_file_descriptors`::
  950. (object)
  951. Contains statistics about open file descriptors in selected nodes.
  952. +
  953. .Properties of `open_file_descriptors`
  954. [%collapsible%open]
  955. ======
  956. `min`::
  957. (integer)
  958. Minimum number of concurrently open file descriptors across all selected nodes.
  959. Returns `-1` if not supported.
  960. `max`::
  961. (integer)
  962. Maximum number of concurrently open file descriptors allowed across all selected
  963. nodes. Returns `-1` if not supported.
  964. `avg`::
  965. (integer)
  966. Average number of concurrently open file descriptors. Returns `-1` if not
  967. supported.
  968. ======
  969. =====
  970. `jvm`::
  971. (object)
  972. Contains statistics about the Java Virtual Machines (JVMs) used by selected
  973. nodes.
  974. +
  975. .Properties of `jvm`
  976. [%collapsible%open]
  977. =====
  978. `max_uptime`::
  979. (<<time-units,time unit>>)
  980. Uptime duration since JVM last started.
  981. `max_uptime_in_millis`::
  982. (integer)
  983. Uptime duration, in milliseconds, since JVM last started.
  984. `versions`::
  985. (array of objects)
  986. Contains statistics about the JVM versions used by selected nodes.
  987. +
  988. .Properties of `versions`
  989. [%collapsible%open]
  990. ======
  991. `version`::
  992. (string)
  993. Version of JVM used by one or more selected nodes.
  994. `vm_name`::
  995. (string)
  996. Name of the JVM.
  997. `vm_version`::
  998. (string)
  999. Full version number of JVM.
  1000. +
  1001. The full version number includes a plus sign (`+`) followed by the build number.
  1002. `vm_vendor`::
  1003. (string)
  1004. Vendor of the JVM.
  1005. `bundled_jdk`::
  1006. (Boolean)
  1007. Always `true`. All distributions come with a bundled Java Development Kit (JDK).
  1008. `using_bundled_jdk`::
  1009. (Boolean)
  1010. If `true`, a bundled JDK is in use by JVM.
  1011. `count`::
  1012. (integer)
  1013. Total number of selected nodes using JVM.
  1014. ======
  1015. `mem`::
  1016. (object)
  1017. Contains statistics about memory used by selected nodes.
  1018. +
  1019. .Properties of `mem`
  1020. [%collapsible%open]
  1021. ======
  1022. `heap_used`::
  1023. (<<byte-units, byte units>>)
  1024. Memory currently in use by the heap across all selected nodes.
  1025. `heap_used_in_bytes`::
  1026. (integer)
  1027. Memory, in bytes, currently in use by the heap across all selected nodes.
  1028. `heap_max`::
  1029. (<<byte-units, byte units>>)
  1030. Maximum amount of memory, in bytes, available for use by the heap across all
  1031. selected nodes.
  1032. `heap_max_in_bytes`::
  1033. (integer)
  1034. Maximum amount of memory, in bytes, available for use by the heap across all
  1035. selected nodes.
  1036. ======
  1037. `threads`::
  1038. (integer)
  1039. Number of active threads in use by JVM across all selected nodes.
  1040. =====
  1041. `fs`::
  1042. (object)
  1043. Contains statistics about file stores by selected nodes.
  1044. +
  1045. .Properties of `fs`
  1046. [%collapsible%open]
  1047. =====
  1048. `total`::
  1049. (<<byte-units, byte units>>)
  1050. Total size of all file stores across all selected nodes.
  1051. `total_in_bytes`::
  1052. (integer)
  1053. Total size, in bytes, of all file stores across all selected nodes.
  1054. `free`::
  1055. (<<byte-units, byte units>>)
  1056. Amount of unallocated disk space in file stores across all selected nodes.
  1057. `free_in_bytes`::
  1058. (integer)
  1059. Total number of unallocated bytes in file stores across all selected nodes.
  1060. `available`::
  1061. (<<byte-units, byte units>>)
  1062. Total amount of disk space available to JVM in file
  1063. stores across all selected nodes.
  1064. +
  1065. Depending on OS or process-level restrictions, this amount may be less than
  1066. `nodes.fs.free`. This is the actual amount of free disk space the selected {es}
  1067. nodes can use.
  1068. `available_in_bytes`::
  1069. (integer)
  1070. Total number of bytes available to JVM in file stores
  1071. across all selected nodes.
  1072. +
  1073. Depending on OS or process-level restrictions, this number may be less than
  1074. `nodes.fs.free_in_byes`. This is the actual amount of free disk space the
  1075. selected {es} nodes can use.
  1076. =====
  1077. `plugins`::
  1078. (array of objects)
  1079. Contains statistics about installed plugins and modules by selected nodes.
  1080. +
  1081. If no plugins or modules are installed, this array is empty.
  1082. +
  1083. .Properties of `plugins`
  1084. [%collapsible%open]
  1085. =====
  1086. `<plugin>`::
  1087. (object)
  1088. Contains statistics about an installed plugin or module.
  1089. +
  1090. .Properties of `<plugin>`
  1091. [%collapsible%open]
  1092. ======
  1093. `name`:::
  1094. (string)
  1095. Name of the {es} plugin.
  1096. `version`:::
  1097. (string)
  1098. {es} version for which the plugin was built.
  1099. `elasticsearch_version`:::
  1100. (string)
  1101. {es} version for which the plugin was built.
  1102. `java_version`:::
  1103. (string)
  1104. Java version for which the plugin was built.
  1105. `description`:::
  1106. (string)
  1107. Short description of the plugin.
  1108. `classname`:::
  1109. (string)
  1110. Class name used as the plugin's entry point.
  1111. `extended_plugins`:::
  1112. (array of strings)
  1113. An array of other plugins extended by this plugin through the Java Service
  1114. Provider Interface (SPI).
  1115. +
  1116. If this plugin extends no other plugins, this array is empty.
  1117. `has_native_controller`:::
  1118. (Boolean)
  1119. If `true`, the plugin has a native controller process.
  1120. ======
  1121. =====
  1122. `network_types`::
  1123. (object)
  1124. Contains statistics about the transport and HTTP networks used by selected
  1125. nodes.
  1126. +
  1127. .Properties of `network_types`
  1128. [%collapsible%open]
  1129. =====
  1130. `transport_types`::
  1131. (object)
  1132. Contains statistics about the transport network types used by selected nodes.
  1133. +
  1134. .Properties of `transport_types`
  1135. [%collapsible%open]
  1136. ======
  1137. `<transport_type>`::
  1138. (integer)
  1139. Number of selected nodes using the transport type.
  1140. ======
  1141. `http_types`::
  1142. (object)
  1143. Contains statistics about the HTTP network types used by selected nodes.
  1144. +
  1145. .Properties of `http_types`
  1146. [%collapsible%open]
  1147. ======
  1148. `<http_type>`::
  1149. (integer)
  1150. Number of selected nodes using the HTTP type.
  1151. ======
  1152. =====
  1153. `discovery_types`::
  1154. (object)
  1155. Contains statistics about the <<discovery-hosts-providers,discovery
  1156. types>> used by selected nodes.
  1157. +
  1158. .Properties of `discovery_types`
  1159. [%collapsible%open]
  1160. =====
  1161. `<discovery_type>`::
  1162. (integer)
  1163. Number of selected nodes using the <<discovery-hosts-providers,discovery
  1164. type>> to find other nodes.
  1165. =====
  1166. `packaging_types`::
  1167. (array of objects)
  1168. Contains statistics about {es} distributions installed on selected nodes.
  1169. +
  1170. .Properties of `packaging_types`
  1171. [%collapsible%open]
  1172. =====
  1173. `flavor`:::
  1174. (string)
  1175. Type of {es} distribution. This is always `default`.
  1176. `type`:::
  1177. (string)
  1178. File type, such as `tar` or `zip`, used for the distribution package.
  1179. `count`:::
  1180. (integer)
  1181. Number of selected nodes using the distribution flavor and file type.
  1182. =====
  1183. ====
  1184. `snapshots`::
  1185. (object)
  1186. Contains statistics about the <<snapshot-restore,snapshot>> activity in the cluster.
  1187. +
  1188. .Properties of `snapshots`
  1189. [%collapsible%open]
  1190. =====
  1191. `current_counts`:::
  1192. (object)
  1193. Contains statistics which report the numbers of various ongoing snapshot activities in the cluster.
  1194. +
  1195. .Properties of `current_counts`
  1196. [%collapsible%open]
  1197. ======
  1198. `snapshots`:::
  1199. (integer)
  1200. The total number of snapshots and clones currently being created by the cluster.
  1201. `shard_snapshots`:::
  1202. (integer)
  1203. The total number of outstanding shard snapshots in the cluster.
  1204. `snapshot_deletions`:::
  1205. (integer)
  1206. The total number of snapshot deletion operations that the cluster is currently
  1207. running.
  1208. `concurrent_operations`:::
  1209. (integer)
  1210. The total number of snapshot operations that the cluster is currently running
  1211. concurrently. This is the total of the `snapshots` and `snapshot_deletions`
  1212. entries, and is limited by <<snapshot-max-concurrent-ops,the
  1213. `snapshot.max_concurrent_operations` setting>>.
  1214. `cleanups`:::
  1215. (integer)
  1216. The total number of repository cleanup operations that the cluster is currently
  1217. running. These operations do not count towards the total number of concurrent
  1218. operations.
  1219. ======
  1220. `repositories`:::
  1221. (object)
  1222. Contains statistics which report the progress of snapshot activities broken down
  1223. by repository. This object contains one entry for each repository registered
  1224. with the cluster.
  1225. +
  1226. .Properties of `repositories`
  1227. [%collapsible%open]
  1228. ======
  1229. `current_counts`:::
  1230. (object)
  1231. Contains statistics which report the numbers of various ongoing snapshot
  1232. activities for this repository.
  1233. +
  1234. .Properties of `current_counts`
  1235. [%collapsible%open]
  1236. =======
  1237. `snapshots`:::
  1238. (integer)
  1239. The total number of ongoing snapshots in this repository.
  1240. `clones`:::
  1241. (integer)
  1242. The total number of ongoing snapshot clones in this repository.
  1243. `finalizations`:::
  1244. (integer)
  1245. The total number of this repository's ongoing snapshots and clone operations
  1246. which are mostly complete except for their last "finalization" step.
  1247. `deletions`:::
  1248. (integer)
  1249. The total number of ongoing snapshot deletion operations in this repository.
  1250. `snapshot_deletions`:::
  1251. (integer)
  1252. The total number of snapshots that are currently being deleted from this
  1253. repository.
  1254. `active_deletions`:::
  1255. (integer)
  1256. The total number of ongoing snapshot deletion operations which are currently
  1257. active in this repository. Snapshot deletions do not run concurrently with other
  1258. snapshot operations, so this may be `0` if any pending deletes are waiting for
  1259. other operations to finish.
  1260. `shards`:::
  1261. (object)
  1262. Contains statistics which report the shard-level progress of ongoing snapshot
  1263. activities for a repository. Note that these statistics relate only to ongoing
  1264. snapshots.
  1265. +
  1266. .Properties of `shards`
  1267. [%collapsible%open]
  1268. ========
  1269. `total`:::
  1270. (integer)
  1271. The total number of shard snapshots currently tracked by this repository. This
  1272. statistic only counts shards in ongoing snapshots, so it will drop when a
  1273. snapshot completes and will be `0` if there are no ongoing snapshots.
  1274. `complete`:::
  1275. (integer)
  1276. The total number of tracked shard snapshots which have completed in this
  1277. repository. This statistic only counts shards in ongoing snapshots, so it will
  1278. drop when a snapshot completes and will be `0` if there are no ongoing
  1279. snapshots.
  1280. `incomplete`:::
  1281. (integer)
  1282. The total number of tracked shard snapshots which have not completed in this
  1283. repository. This is the difference between the `total` and `complete` values.
  1284. `states`:::
  1285. (object)
  1286. The total number of shard snapshots in each of the named states in this
  1287. repository. These states are an implementation detail of the snapshotting
  1288. process which may change between versions. They are included here for expert
  1289. users, but should otherwise be ignored.
  1290. ========
  1291. =======
  1292. `oldest_start_time`:::
  1293. (string)
  1294. The start time of the oldest running snapshot in this repository.
  1295. `oldest_start_time_in_millis`:::
  1296. (integer)
  1297. The start time of the oldest running snapshot in this repository, represented as
  1298. milliseconds since the Unix epoch.
  1299. ======
  1300. =====
  1301. [[cluster-stats-api-example]]
  1302. ==== {api-examples-title}
  1303. [source,console]
  1304. --------------------------------------------------
  1305. GET /_cluster/stats?human&pretty
  1306. --------------------------------------------------
  1307. // TEST[setup:my_index]
  1308. The API returns the following response:
  1309. ["source","js",subs="attributes,callouts"]
  1310. --------------------------------------------------
  1311. {
  1312. "_nodes" : {
  1313. "total" : 1,
  1314. "successful" : 1,
  1315. "failed" : 0
  1316. },
  1317. "cluster_uuid": "YjAvIhsCQ9CbjWZb2qJw3Q",
  1318. "cluster_name": "elasticsearch",
  1319. "timestamp": 1459427693515,
  1320. "status": "green",
  1321. "indices": {
  1322. "count": 1,
  1323. "shards": {
  1324. "total": 5,
  1325. "primaries": 5,
  1326. "replication": 0,
  1327. "index": {
  1328. "shards": {
  1329. "min": 5,
  1330. "max": 5,
  1331. "avg": 5
  1332. },
  1333. "primaries": {
  1334. "min": 5,
  1335. "max": 5,
  1336. "avg": 5
  1337. },
  1338. "replication": {
  1339. "min": 0,
  1340. "max": 0,
  1341. "avg": 0
  1342. }
  1343. }
  1344. },
  1345. "docs": {
  1346. "count": 10,
  1347. "deleted": 0,
  1348. "total_size_in_bytes": 8833
  1349. },
  1350. "store": {
  1351. "size": "16.2kb",
  1352. "size_in_bytes": 16684,
  1353. "total_data_set_size": "16.2kb",
  1354. "total_data_set_size_in_bytes": 16684,
  1355. "reserved": "0b",
  1356. "reserved_in_bytes": 0
  1357. },
  1358. "search": {
  1359. ...
  1360. },
  1361. "fielddata": {
  1362. "memory_size": "0b",
  1363. "memory_size_in_bytes": 0,
  1364. "evictions": 0,
  1365. "global_ordinals": {
  1366. "build_time" : "0s",
  1367. "build_time_in_millis" : 0
  1368. }
  1369. },
  1370. "query_cache": {
  1371. "memory_size": "0b",
  1372. "memory_size_in_bytes": 0,
  1373. "total_count": 0,
  1374. "hit_count": 0,
  1375. "miss_count": 0,
  1376. "cache_size": 0,
  1377. "cache_count": 0,
  1378. "evictions": 0
  1379. },
  1380. "completion": {
  1381. "size": "0b",
  1382. "size_in_bytes": 0
  1383. },
  1384. "segments": {
  1385. "count": 4,
  1386. "memory": "8.6kb",
  1387. "memory_in_bytes": 0,
  1388. "terms_memory": "0b",
  1389. "terms_memory_in_bytes": 0,
  1390. "stored_fields_memory": "0b",
  1391. "stored_fields_memory_in_bytes": 0,
  1392. "term_vectors_memory": "0b",
  1393. "term_vectors_memory_in_bytes": 0,
  1394. "norms_memory": "0b",
  1395. "norms_memory_in_bytes": 0,
  1396. "points_memory" : "0b",
  1397. "points_memory_in_bytes" : 0,
  1398. "doc_values_memory": "0b",
  1399. "doc_values_memory_in_bytes": 0,
  1400. "index_writer_memory": "0b",
  1401. "index_writer_memory_in_bytes": 0,
  1402. "version_map_memory": "0b",
  1403. "version_map_memory_in_bytes": 0,
  1404. "fixed_bit_set": "0b",
  1405. "fixed_bit_set_memory_in_bytes": 0,
  1406. "max_unsafe_auto_id_timestamp" : -9223372036854775808,
  1407. "file_sizes": {}
  1408. },
  1409. "mappings": {
  1410. "total_field_count": 0,
  1411. "total_deduplicated_field_count": 0,
  1412. "total_deduplicated_mapping_size": "0b",
  1413. "total_deduplicated_mapping_size_in_bytes": 0,
  1414. "field_types": [],
  1415. "runtime_field_types": []
  1416. },
  1417. "analysis": {
  1418. "char_filter_types": [],
  1419. "tokenizer_types": [],
  1420. "filter_types": [],
  1421. "analyzer_types": [],
  1422. "built_in_char_filters": [],
  1423. "built_in_tokenizers": [],
  1424. "built_in_filters": [],
  1425. "built_in_analyzers": [],
  1426. "synonyms": {}
  1427. },
  1428. "versions": [
  1429. {
  1430. "version": "8.0.0",
  1431. "index_count": 1,
  1432. "primary_shard_count": 1,
  1433. "total_primary_size": "7.4kb",
  1434. "total_primary_bytes": 7632
  1435. }
  1436. ],
  1437. "dense_vector": {
  1438. "value_count": 0
  1439. }
  1440. },
  1441. "nodes": {
  1442. "count": {
  1443. "total": 1,
  1444. "data": 1,
  1445. "coordinating_only": 0,
  1446. "master": 1,
  1447. "ingest": 1,
  1448. "voting_only": 0
  1449. },
  1450. "versions": [
  1451. "{version}"
  1452. ],
  1453. "os": {
  1454. "available_processors": 8,
  1455. "allocated_processors": 8,
  1456. "names": [
  1457. {
  1458. "name": "Mac OS X",
  1459. "count": 1
  1460. }
  1461. ],
  1462. "pretty_names": [
  1463. {
  1464. "pretty_name": "Mac OS X",
  1465. "count": 1
  1466. }
  1467. ],
  1468. "architectures": [
  1469. {
  1470. "arch": "x86_64",
  1471. "count": 1
  1472. }
  1473. ],
  1474. "mem" : {
  1475. "total" : "16gb",
  1476. "total_in_bytes" : 17179869184,
  1477. "adjusted_total" : "16gb",
  1478. "adjusted_total_in_bytes" : 17179869184,
  1479. "free" : "78.1mb",
  1480. "free_in_bytes" : 81960960,
  1481. "used" : "15.9gb",
  1482. "used_in_bytes" : 17097908224,
  1483. "free_percent" : 0,
  1484. "used_percent" : 100
  1485. }
  1486. },
  1487. "process": {
  1488. "cpu": {
  1489. "percent": 9
  1490. },
  1491. "open_file_descriptors": {
  1492. "min": 268,
  1493. "max": 268,
  1494. "avg": 268
  1495. }
  1496. },
  1497. "jvm": {
  1498. "max_uptime": "13.7s",
  1499. "max_uptime_in_millis": 13737,
  1500. "versions": [
  1501. {
  1502. "version": "12",
  1503. "vm_name": "OpenJDK 64-Bit Server VM",
  1504. "vm_version": "12+33",
  1505. "vm_vendor": "Oracle Corporation",
  1506. "bundled_jdk": true,
  1507. "using_bundled_jdk": true,
  1508. "count": 1
  1509. }
  1510. ],
  1511. "mem": {
  1512. "heap_used": "57.5mb",
  1513. "heap_used_in_bytes": 60312664,
  1514. "heap_max": "989.8mb",
  1515. "heap_max_in_bytes": 1037959168
  1516. },
  1517. "threads": 90
  1518. },
  1519. "fs": {
  1520. "total": "200.6gb",
  1521. "total_in_bytes": 215429193728,
  1522. "free": "32.6gb",
  1523. "free_in_bytes": 35064553472,
  1524. "available": "32.4gb",
  1525. "available_in_bytes": 34802409472
  1526. },
  1527. "plugins": [
  1528. {
  1529. "name": "analysis-icu",
  1530. "version": "{version}",
  1531. "description": "The ICU Analysis plugin integrates Lucene ICU module into elasticsearch, adding ICU relates analysis components.",
  1532. "classname": "org.elasticsearch.plugin.analysis.icu.AnalysisICUPlugin",
  1533. "has_native_controller": false
  1534. },
  1535. ...
  1536. ],
  1537. "ingest": {
  1538. "number_of_pipelines" : 1,
  1539. "processor_stats": {
  1540. ...
  1541. }
  1542. },
  1543. "indexing_pressure": {
  1544. "memory": {
  1545. "current": {
  1546. "combined_coordinating_and_primary": "0b",
  1547. "combined_coordinating_and_primary_in_bytes": 0,
  1548. "coordinating": "0b",
  1549. "coordinating_in_bytes": 0,
  1550. "primary": "0b",
  1551. "primary_in_bytes": 0,
  1552. "replica": "0b",
  1553. "replica_in_bytes": 0,
  1554. "all": "0b",
  1555. "all_in_bytes": 0
  1556. },
  1557. "total": {
  1558. "combined_coordinating_and_primary": "0b",
  1559. "combined_coordinating_and_primary_in_bytes": 0,
  1560. "coordinating": "0b",
  1561. "coordinating_in_bytes": 0,
  1562. "primary": "0b",
  1563. "primary_in_bytes": 0,
  1564. "replica": "0b",
  1565. "replica_in_bytes": 0,
  1566. "all": "0b",
  1567. "all_in_bytes": 0,
  1568. "coordinating_rejections": 0,
  1569. "primary_rejections": 0,
  1570. "replica_rejections": 0
  1571. },
  1572. "limit" : "0b",
  1573. "limit_in_bytes": 0
  1574. }
  1575. },
  1576. "network_types": {
  1577. ...
  1578. },
  1579. "discovery_types": {
  1580. ...
  1581. },
  1582. "packaging_types": [
  1583. {
  1584. ...
  1585. }
  1586. ]
  1587. },
  1588. "snapshots": {
  1589. ...
  1590. }
  1591. }
  1592. --------------------------------------------------
  1593. // TESTRESPONSE[s/"plugins": \[[^\]]*\]/"plugins": $body.$_path/]
  1594. // TESTRESPONSE[s/"network_types": \{[^\}]*\}/"network_types": $body.$_path/]
  1595. // TESTRESPONSE[s/"discovery_types": \{[^\}]*\}/"discovery_types": $body.$_path/]
  1596. // TESTRESPONSE[s/"processor_stats": \{[^\}]*\}/"processor_stats": $body.$_path/]
  1597. // TESTRESPONSE[s/"count": \{[^\}]*\}/"count": $body.$_path/]
  1598. // TESTRESPONSE[s/"packaging_types": \[[^\]]*\]/"packaging_types": $body.$_path/]
  1599. // TESTRESPONSE[s/"snapshots": \{[^\}]*\}/"snapshots": $body.$_path/]
  1600. // TESTRESPONSE[s/"field_types": \[[^\]]*\]/"field_types": $body.$_path/]
  1601. // TESTRESPONSE[s/"runtime_field_types": \[[^\]]*\]/"runtime_field_types": $body.$_path/]
  1602. // TESTRESPONSE[s/"search": \{[^\}]*\}/"search": $body.$_path/]
  1603. // TESTRESPONSE[s/: true|false/: $body.$_path/]
  1604. // TESTRESPONSE[s/: (\-)?[0-9]+/: $body.$_path/]
  1605. // TESTRESPONSE[s/: "[^"]*"/: $body.$_path/]
  1606. // These replacements do a few things:
  1607. // 1. Ignore the contents of the `plugins` object because we don't know all of
  1608. // the plugins that will be in it. And because we figure folks don't need to
  1609. // see an exhaustive list anyway.
  1610. // 2. Similarly, ignore the contents of `network_types`, `discovery_types`,
  1611. // `packaging_types` and `snapshots`.
  1612. // 3. Ignore the contents of the (nodes) count object, as what's shown here
  1613. // depends on the license. Voting-only nodes are e.g. only shown when this
  1614. // test runs with a basic license.
  1615. // 4. All of the numbers and strings on the right hand side of *every* field in
  1616. // the response are ignored. So we're really only asserting things about the
  1617. // the shape of this response, not the values in it.
  1618. This API can be restricted to a subset of the nodes using <<cluster-nodes,node
  1619. filters>>:
  1620. [source,console]
  1621. --------------------------------------------------
  1622. GET /_cluster/stats/nodes/node1,node*,master:false
  1623. --------------------------------------------------