From 4d8f9735af07605f9fdc1317f28d2575c0b75684 Mon Sep 17 00:00:00 2001 From: kruskall <99559985+kruskall@users.noreply.github.com> Date: Wed, 2 Jul 2025 16:18:00 +0200 Subject: [PATCH 1/6] Update apm@mappings.yaml --- .../src/main/resources/component-templates/apm@mappings.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml b/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml index ac6462c86676c..b11f8a32d7f9a 100644 --- a/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml +++ b/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml @@ -4,6 +4,7 @@ _meta: managed: true template: mappings: + date_detection: true dynamic: true dynamic_templates: - numeric_labels: From 3cd0c1615a914610c5f4640aec53bbbe00087a3d Mon Sep 17 00:00:00 2001 From: kruskall <99559985+kruskall@users.noreply.github.com> Date: Wed, 2 Jul 2025 16:19:16 +0200 Subject: [PATCH 2/6] Update resources.yaml --- x-pack/plugin/apm-data/src/main/resources/resources.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/apm-data/src/main/resources/resources.yaml b/x-pack/plugin/apm-data/src/main/resources/resources.yaml index d76fd19f57d0d..b99889691080d 100644 --- a/x-pack/plugin/apm-data/src/main/resources/resources.yaml +++ b/x-pack/plugin/apm-data/src/main/resources/resources.yaml @@ -1,7 +1,7 @@ # "version" holds the version of the templates and ingest pipelines installed # by xpack-plugin apm-data. This must be increased whenever an existing template or # pipeline is changed, in order for it to be updated on Elasticsearch upgrade. -version: 16 +version: 17 component-templates: # Data lifecycle. From 72a351eed7fd8613230d50605e091cd807e07465 Mon Sep 17 00:00:00 2001 From: kruskall <99559985+kruskall@users.noreply.github.com> Date: Wed, 2 Jul 2025 16:35:56 +0200 Subject: [PATCH 3/6] fix: explicitly map system.process.cpu.start_time to date --- .../src/main/resources/component-templates/apm@mappings.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml b/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml index b11f8a32d7f9a..950163d600408 100644 --- a/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml +++ b/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml @@ -13,6 +13,8 @@ template: type: scaled_float scaling_factor: 1000000 properties: + system.process.cpu.start_time: + type: date data_stream.dataset: type: constant_keyword data_stream.namespace: From 5cc6e2fa34387bdf05126b7cf89f08f3906b2b09 Mon Sep 17 00:00:00 2001 From: kruskall <99559985+kruskall@users.noreply.github.com> Date: Wed, 2 Jul 2025 16:36:16 +0200 Subject: [PATCH 4/6] Update apm@mappings.yaml --- .../src/main/resources/component-templates/apm@mappings.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml b/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml index 950163d600408..574ba79a116f6 100644 --- a/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml +++ b/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml @@ -4,7 +4,7 @@ _meta: managed: true template: mappings: - date_detection: true + date_detection: false dynamic: true dynamic_templates: - numeric_labels: From 626958209a4bc5b42ddf274bc231c93724df4967 Mon Sep 17 00:00:00 2001 From: kruskall <99559985+kruskall@users.noreply.github.com> Date: Wed, 2 Jul 2025 18:34:33 +0200 Subject: [PATCH 5/6] Update metrics-apm@mappings.yaml --- .../resources/component-templates/metrics-apm@mappings.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugin/apm-data/src/main/resources/component-templates/metrics-apm@mappings.yaml b/x-pack/plugin/apm-data/src/main/resources/component-templates/metrics-apm@mappings.yaml index 660db3a6b0e2e..3f7b41ea7903c 100644 --- a/x-pack/plugin/apm-data/src/main/resources/component-templates/metrics-apm@mappings.yaml +++ b/x-pack/plugin/apm-data/src/main/resources/component-templates/metrics-apm@mappings.yaml @@ -6,6 +6,8 @@ _meta: template: mappings: properties: + system.process.cpu.start_time: + type: date processor.event: type: constant_keyword value: metric From 3c5f31554aded75b4c3d43d7862659da8952ed05 Mon Sep 17 00:00:00 2001 From: kruskall <99559985+kruskall@users.noreply.github.com> Date: Wed, 2 Jul 2025 18:34:51 +0200 Subject: [PATCH 6/6] Update apm@mappings.yaml --- .../src/main/resources/component-templates/apm@mappings.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml b/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml index 574ba79a116f6..a5a3a7433f4c1 100644 --- a/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml +++ b/x-pack/plugin/apm-data/src/main/resources/component-templates/apm@mappings.yaml @@ -13,8 +13,6 @@ template: type: scaled_float scaling_factor: 1000000 properties: - system.process.cpu.start_time: - type: date data_stream.dataset: type: constant_keyword data_stream.namespace: