From 7a0870724b6b398acb46f320d0c23ea14f48f47b Mon Sep 17 00:00:00 2001 From: David Kyle Date: Tue, 23 Sep 2025 16:12:49 +0100 Subject: [PATCH] [ML] Add .reindexed-v7-ml-anomalies-* to anomaly results template index pattern (#135270) Anomaly detection results indices created in a version 6 Elasticsearch are reindexed and renamed with the ".reindexed-v7" prefix in version 7. In 8.18 and 8.19, those version 7 indices are rolled over in preparation for the version 9 upgrade. ".reindexed-v7-ml-anomalies-*" is added to the AD results index template index patterns so when those indices are rolled over the pick up the correct mappings --- docs/changelog/135270.yaml | 5 +++++ .../ml/anomalydetection/results_index_template.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 docs/changelog/135270.yaml diff --git a/docs/changelog/135270.yaml b/docs/changelog/135270.yaml new file mode 100644 index 0000000000000..f3efc0b02df2c --- /dev/null +++ b/docs/changelog/135270.yaml @@ -0,0 +1,5 @@ +pr: 135270 +summary: Add .reindexed-v7-ml-anomalies-* to anomaly results template index pattern +area: Machine Learning +type: bug +issues: [] diff --git a/x-pack/plugin/core/template-resources/src/main/resources/ml/anomalydetection/results_index_template.json b/x-pack/plugin/core/template-resources/src/main/resources/ml/anomalydetection/results_index_template.json index 7914cc9bd6a8a..c038abb37728b 100644 --- a/x-pack/plugin/core/template-resources/src/main/resources/ml/anomalydetection/results_index_template.json +++ b/x-pack/plugin/core/template-resources/src/main/resources/ml/anomalydetection/results_index_template.json @@ -2,7 +2,7 @@ "priority": 2147483647, "version" : ${xpack.ml.version.id}, "index_patterns" : [ - ".ml-anomalies-*" + ".ml-anomalies-*", ".reindexed-v7-ml-anomalies-*" ], "template" : { "settings" : {