info-http.asciidoc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. [[cluster-info-http]]
  2. === Cluster Info HTTP API
  3. ++++
  4. <titleabbrev>Cluster HTTP Info</titleabbrev>
  5. ++++
  6. Returns cluster HTTP information.
  7. [[cluster-info-http-api-request]]
  8. ==== {api-request-title}
  9. `GET /_info/http` +
  10. [[cluster-info-http-api-prereqs]]
  11. ==== {api-prereq-title}
  12. * If the {es} {security-features} are enabled, you must have the `monitor` or
  13. `manage` <<privileges-list-cluster,cluster privilege>> to use this API.
  14. [[cluster-info-http-api-desc]]
  15. ==== {api-description-title}
  16. You can use the Cluster Info HTTP API to retrieve http information in a cluster.
  17. [role="child_attributes"]
  18. [[cluster-info-http-api-response-body]]
  19. ==== {api-response-body-title}
  20. `cluster_name`::
  21. (string)
  22. Name of the cluster. Based on the <<cluster-name>> setting.
  23. [[cluster-info-http-api-response-body-http]]
  24. `http`::
  25. (object)
  26. Contains http statistics for the cluster.
  27. +
  28. .Properties of `http`
  29. [%collapsible%open]
  30. ======
  31. `current_open`::
  32. (integer)
  33. Current number of open HTTP connections for the cluster.
  34. `total_opened`::
  35. (integer)
  36. Total number of HTTP connections opened for the cluster.
  37. `clients`::
  38. (array of objects)
  39. Information on current and recently-closed HTTP client connections.
  40. Clients that have been closed longer than the <<http-settings,http.client_stats.closed_channels.max_age>>
  41. setting will not be represented here.
  42. +
  43. .Properties of `clients`
  44. [%collapsible%open]
  45. =======
  46. `id`::
  47. (integer)
  48. Unique ID for the HTTP client.
  49. `agent`::
  50. (string)
  51. Reported agent for the HTTP client. If unavailable, this property is not
  52. included in the response.
  53. `local_address`::
  54. (string)
  55. Local address for the HTTP connection.
  56. `remote_address`::
  57. (string)
  58. Remote address for the HTTP connection.
  59. `last_uri`::
  60. (string)
  61. The URI of the client's most recent request.
  62. `x_forwarded_for`::
  63. (string)
  64. Value from the client's `x-forwarded-for` HTTP header. If unavailable, this
  65. property is not included in the response.
  66. `x_opaque_id`::
  67. (string)
  68. Value from the client's `x-opaque-id` HTTP header. If unavailable, this property
  69. is not included in the response.
  70. `opened_time_millis`::
  71. (integer)
  72. Time at which the client opened the connection.
  73. `closed_time_millis`::
  74. (integer)
  75. Time at which the client closed the connection if the connection is closed.
  76. `last_request_time_millis`::
  77. (integer)
  78. Time of the most recent request from this client.
  79. `request_count`::
  80. (integer)
  81. Number of requests from this client.
  82. `request_size_bytes`::
  83. (integer)
  84. Cumulative size in bytes of all requests from this client.
  85. =======
  86. ======
  87. [[cluster-info-http-api-example]]
  88. ==== {api-examples-title}
  89. [source,console]
  90. ----
  91. # returns the http info of the cluster
  92. GET /_info/http
  93. ----