Skip to content

Commit 7e87a02

Browse files
[Stack Monitoring] update read_exceptions mappings (#94875)
* update read_exceptions mappings * align with legacy mappings --------- Co-authored-by: Elastic Machine <[email protected]>
1 parent ff2591d commit 7e87a02

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

x-pack/plugin/core/src/main/resources/monitoring-es-mb.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2042,7 +2042,26 @@
20422042
"type": "keyword"
20432043
},
20442044
"read_exceptions": {
2045-
"type": "nested"
2045+
"type": "nested",
2046+
"properties": {
2047+
"from_seq_no": {
2048+
"type": "long"
2049+
},
2050+
"retries": {
2051+
"type": "integer"
2052+
},
2053+
"exception": {
2054+
"type": "object",
2055+
"properties": {
2056+
"type" : {
2057+
"type": "keyword"
2058+
},
2059+
"reason": {
2060+
"type": "text"
2061+
}
2062+
}
2063+
}
2064+
}
20462065
},
20472066
"shard_id": {
20482067
"type": "long"

x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/MonitoringTemplateRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class MonitoringTemplateRegistry extends IndexTemplateRegistry {
7878
* writes monitoring data in ECS format as of 8.0. These templates define the ECS schema as well as alias fields for the old monitoring
7979
* mappings that point to the corresponding ECS fields.
8080
*/
81-
public static final int STACK_MONITORING_REGISTRY_VERSION = Version.V_8_0_0.id + 7;
81+
public static final int STACK_MONITORING_REGISTRY_VERSION = Version.V_8_0_0.id + 8;
8282
private static final String STACK_MONITORING_REGISTRY_VERSION_VARIABLE = "xpack.stack.monitoring.template.release.version";
8383
private static final String STACK_TEMPLATE_VERSION = "8";
8484
private static final String STACK_TEMPLATE_VERSION_VARIABLE = "xpack.stack.monitoring.template.version";

0 commit comments

Comments
 (0)