Description
APM Server version (apm-server version
): 8.15.0
Description of the problem including expected versus actual behavior: In 8.15.0
we migrated from ILM to DSL. New indexes created for clusters which migrate to 8.15.0
don't have any lifecycle attached as existing datastream needs to be updated explicitly: https://www.elastic.co/guide/en/elasticsearch/reference/current/tutorial-manage-existing-data-stream.html.
Steps to reproduce:
Please include a minimal but complete recreation of the problem,
including server configuration, agent(s) used, etc. The easier you make it
for us to reproduce it, the more likely that somebody will take the time to
look at it.
- Create a cluster with version <
8.15.0
- Send data to the cluster (for example: traces) (and continue sending it throughout the steps)
- Perform a rollover on the datastream getting data
- Upgrade the cluster to
8.15.0
- Observe that the latest indices are
Unmanaged
(for example: by usingGET /_data_stream/traces-apm-default
for traces datastream) - Perform a rollover on the datastream getting data
- Observe that the newly created index is also
Unmanaged
(for example: by usingGET /_data_stream/traces-apm-default
for traces datastream)
Temporary mitigation is to explicitly set the lifecycle using the PUT API. For example, the below operations would set data retention based on APM defaults for all APM datastreams:
PUT _data_stream/traces-apm-*/_lifecycle
{
"data_retention": "10d"
}
PUT _data_stream/traces-apm.rum*/_lifecycle
{
"data_retention": "90d"
}
PUT _data_stream/traces-apm.sampled*/_lifecycle
{
"data_retention": "1h"
}
PUT _data_stream/metrics-apm.*.1m-*/_lifecycle
{
"data_retention": "90d"
}
PUT _data_stream/metrics-apm.*.10m-*/_lifecycle
{
"data_retention": "180d"
}
PUT _data_stream/metrics-apm.*.60m-*/_lifecycle
{
"data_retention": "390d"
}
PUT _data_stream/metrics-apm.internal-*/_lifecycle
{
"data_retention": "90d"
}
PUT _data_stream/metrics-apm.app.*/_lifecycle
{
"data_retention": "90d"
}
PUT _data_stream/logs-apm.*/_lifecycle
{
"data_retention": "10d"
}
Provide logs (if relevant): N/A