From a9d756a09cc7dbde2cefdeddd637daa47c9793bc Mon Sep 17 00:00:00 2001 From: kruskal <99559985+kruskall@users.noreply.github.com> Date: Thu, 15 Dec 2022 04:48:45 +0100 Subject: [PATCH] fix: remove index.sort.field for internal metrics illegal_argument_exception: [illegal_argument_exception] Reason: [index.mode=time_series] is incompatible with [index.sort.field] --- apmpackage/apm/data_stream/internal_metrics/manifest.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apmpackage/apm/data_stream/internal_metrics/manifest.yml b/apmpackage/apm/data_stream/internal_metrics/manifest.yml index c3c3f3ed395..9dc59403f79 100644 --- a/apmpackage/apm/data_stream/internal_metrics/manifest.yml +++ b/apmpackage/apm/data_stream/internal_metrics/manifest.yml @@ -3,6 +3,7 @@ type: metrics dataset: apm.internal ilm_policy: metrics-apm.internal_metrics-default_policy elasticsearch: + index_mode: "time_series" index_template: mappings: # Internal metrics should have all fields strictly mapped; @@ -21,8 +22,3 @@ elasticsearch: type: aggregate_metric_double metrics: [sum, value_count] default_metric: sum - settings: - index: - mode: "time_series" - sort.field: "@timestamp" - sort.order: desc