Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval.
For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index.
All documents within an hour interval are summarized and stored as a single document in the downsample index.
NOTE: Only indices in a time series data stream are supported.
Neither field nor document level security can be defined on the source index.
The source index must be read only (index.blocks.write: true).
POST
/{index}/_downsample/{target_index}
Console
POST /my-time-series-index/_downsample/my-downsampled-time-series-index
{
"fixed_interval": "1d"
}
curl \
--request POST 'http://api.example.com/{index}/_downsample/{target_index}' \
--header "Content-Type: application/json" \
--data '"{\n \"fixed_interval\": \"1d\"\n}"'
Request examples
Downsample request example1
{
"fixed_interval": "1d"
}
An example body for a `POST /my-time-series-index/_downsample/my-downsampled-time-series-index` request.
{
"fixed_interval": "1d"
}