stats.asciidoc 46 KB

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