Skip to content

Commit 7771d8b

Browse files
committed
Tweak the ECS fields in DeprecatedMessage (#62855)
Backport of #62855. Follow-up to #61484.
1 parent 71b92f8 commit 7771d8b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

x-pack/plugin/deprecation/qa/rest/src/javaRestTest/java/org/elasticsearch/xpack/deprecation/DeprecationHttpIT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ public void testDeprecationMessagesCanBeIndexed() throws Exception {
277277
hasKey("cluster.name"),
278278
hasKey("cluster.uuid"),
279279
hasKey("component"),
280-
hasEntry("data_stream.datatype", "deprecation"),
281-
hasEntry("data_stream.namespace", "elasticsearch"),
280+
hasEntry("data_stream.dataset", "deprecation.elasticsearch"),
281+
hasEntry("data_stream.namespace", "default"),
282282
hasEntry("data_stream.type", "logs"),
283283
hasEntry("ecs.version", "1.6"),
284284
hasEntry("key", "deprecated_settings"),
@@ -293,8 +293,8 @@ public void testDeprecationMessagesCanBeIndexed() throws Exception {
293293
hasKey("cluster.name"),
294294
hasKey("cluster.uuid"),
295295
hasKey("component"),
296-
hasEntry("data_stream.datatype", "deprecation"),
297-
hasEntry("data_stream.namespace", "elasticsearch"),
296+
hasEntry("data_stream.dataset", "deprecation.elasticsearch"),
297+
hasEntry("data_stream.namespace", "default"),
298298
hasEntry("data_stream.type", "logs"),
299299
hasEntry("ecs.version", "1.6"),
300300
hasEntry("key", "deprecated_route"),

x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/logging/EcsJsonLayout.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ protected String pattern(String type, String[] esMessageFields) {
5858
map.put("node.name", inQuotes("%node_name"));
5959
map.put("message", inQuotes("%notEmpty{%enc{%marker}{JSON} }%enc{%.-10000m}{JSON}"));
6060
map.put("data_stream.type", inQuotes("logs"));
61-
map.put("data_stream.datatype", inQuotes("deprecation"));
62-
map.put("data_stream.namespace", inQuotes("elasticsearch"));
61+
map.put("data_stream.dataset", inQuotes("deprecation.elasticsearch"));
62+
map.put("data_stream.namespace", inQuotes("default"));
6363
map.put("ecs.version", inQuotes(ECS_VERSION));
6464

6565
for (String key : esMessageFields) {

0 commit comments

Comments
 (0)