Tweak the ECS fields in DeprecatedMessage (#62855)
Backport of #62855. Follow-up to #61484.
This commit is contained in:
parent
71b92f8699
commit
7771d8b6fa
|
@ -277,8 +277,8 @@ public class DeprecationHttpIT extends ESRestTestCase {
|
|||
hasKey("cluster.name"),
|
||||
hasKey("cluster.uuid"),
|
||||
hasKey("component"),
|
||||
hasEntry("data_stream.datatype", "deprecation"),
|
||||
hasEntry("data_stream.namespace", "elasticsearch"),
|
||||
hasEntry("data_stream.dataset", "deprecation.elasticsearch"),
|
||||
hasEntry("data_stream.namespace", "default"),
|
||||
hasEntry("data_stream.type", "logs"),
|
||||
hasEntry("ecs.version", "1.6"),
|
||||
hasEntry("key", "deprecated_settings"),
|
||||
|
@ -293,8 +293,8 @@ public class DeprecationHttpIT extends ESRestTestCase {
|
|||
hasKey("cluster.name"),
|
||||
hasKey("cluster.uuid"),
|
||||
hasKey("component"),
|
||||
hasEntry("data_stream.datatype", "deprecation"),
|
||||
hasEntry("data_stream.namespace", "elasticsearch"),
|
||||
hasEntry("data_stream.dataset", "deprecation.elasticsearch"),
|
||||
hasEntry("data_stream.namespace", "default"),
|
||||
hasEntry("data_stream.type", "logs"),
|
||||
hasEntry("ecs.version", "1.6"),
|
||||
hasEntry("key", "deprecated_route"),
|
||||
|
|
|
@ -58,8 +58,8 @@ public class EcsJsonLayout extends AbstractStringLayout {
|
|||
map.put("node.name", inQuotes("%node_name"));
|
||||
map.put("message", inQuotes("%notEmpty{%enc{%marker}{JSON} }%enc{%.-10000m}{JSON}"));
|
||||
map.put("data_stream.type", inQuotes("logs"));
|
||||
map.put("data_stream.datatype", inQuotes("deprecation"));
|
||||
map.put("data_stream.namespace", inQuotes("elasticsearch"));
|
||||
map.put("data_stream.dataset", inQuotes("deprecation.elasticsearch"));
|
||||
map.put("data_stream.namespace", inQuotes("default"));
|
||||
map.put("ecs.version", inQuotes(ECS_VERSION));
|
||||
|
||||
for (String key : esMessageFields) {
|
||||
|
|
Loading…
Reference in New Issue