younifyd
Menu

Get index statistics (GET /_stats)

Get index statistics

GET/_stats

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get index statistics (GET /_stats) action (under indices).
  3. Fill in the fields below, then reference the result from later steps as {{getIndexStatisticsGetStats.response.data}}.

Request

Query parameters

completion_fieldsoneOf

Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics.

expand_wildcardsoneOf

Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as `open,hidden`.

fielddata_fieldsoneOf

Comma-separated list or wildcard expressions of fields to include in fielddata statistics.

fieldsoneOf

Comma-separated list or wildcard expressions of fields to include in the statistics.

forbid_closed_indicesboolean

If true, statistics are not collected from closed indices.

groupsoneOf

Comma-separated list of search groups to include in the search statistics.

include_segment_file_sizesboolean

If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested).

include_unloaded_segmentsboolean

If true, the response includes information from segments that are not loaded into memory.

levelstring

Indicates whether statistics are aggregated at the cluster, indices, or shards level.

One ofclusterindicesshards

Response

Returns 200 with an object. Read it in later steps with {{getIndexStatisticsGetStats.response.data.<field>}}.

indicesobject
_shardsany
_allany
json
{
  "_shards": null,
  "_all": null,
  "indices": {}
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Get index statistics (GET /_stats) — Elasticsearch — Documentation