younifyd
Menu

Downsample an index

Downsample an index

POST/{index}/_downsample/{target_index}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Downsample an index action (under data stream).
  3. Fill in the fields below, then reference the result from later steps as {{downsampleAnIndex.response.data}}.

Request

Path parameters

indexstringrequired

Name of the time series index to downsample.

target_indexstringrequired

Name of the index to create.

Request body

Enter the body as JSON in the step's Body field.

fixed_intervalanyrequired

The interval at which to aggregate the original time series index.

sampling_methodany

The sampling method used to reduce the documents; it can be either `aggregate` or `last_value`. Defaults to `aggregate`.

json
{
  "fixed_interval": null,
  "sampling_method": null
}

Response

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

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

Downsample an index — Elasticsearch — Documentation