From 79179be466416801ced6192e7deb0ffd3ba1f3d4 Mon Sep 17 00:00:00 2001 From: Jannik Brand Date: Thu, 2 Nov 2023 12:45:12 +0100 Subject: [PATCH] Add missing ISM rollover index setting for otel span indices Indices require the rollover_alias ISM setting otherwise rollover actions by an ISM policy (raw-span-policy) are failing. Reference: https://opensearch.org/docs/2.11/im-plugin/ism/error-prevention/resolutions/#the-rollover-policy-misses-rollover_alias-index-setting Issue: #3506 Signed-off-by: Jannik Brand --- .../index-template/otel-v1-apm-span-index-template.json | 3 +++ .../src/main/resources/otel-v1-apm-span-index-template.json | 3 +++ 2 files changed, 6 insertions(+) diff --git a/data-prepper-plugins/opensearch/src/main/resources/index-template/otel-v1-apm-span-index-template.json b/data-prepper-plugins/opensearch/src/main/resources/index-template/otel-v1-apm-span-index-template.json index e0f81af119..6115b9ca38 100644 --- a/data-prepper-plugins/opensearch/src/main/resources/index-template/otel-v1-apm-span-index-template.json +++ b/data-prepper-plugins/opensearch/src/main/resources/index-template/otel-v1-apm-span-index-template.json @@ -1,6 +1,9 @@ { "version": 1, "template": { + "settings": { + "plugins.index_state_management.rollover_alias": "otel-v1-apm-span" + }, "mappings": { "date_detection": false, "dynamic_templates": [ diff --git a/data-prepper-plugins/opensearch/src/main/resources/otel-v1-apm-span-index-template.json b/data-prepper-plugins/opensearch/src/main/resources/otel-v1-apm-span-index-template.json index 9fefc33c18..3977be77a8 100644 --- a/data-prepper-plugins/opensearch/src/main/resources/otel-v1-apm-span-index-template.json +++ b/data-prepper-plugins/opensearch/src/main/resources/otel-v1-apm-span-index-template.json @@ -1,5 +1,8 @@ { "version": 1, + "settings": { + "plugins.index_state_management.rollover_alias": "otel-v1-apm-span" + }, "mappings": { "date_detection": false, "dynamic_templates": [