Skip to content

Commit 438fc2c

Browse files
authored
Ensure ecs.version is treated as a top level field (#71)
1 parent d3ffcf1 commit 438fc2c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spec/spec.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@
4242
"ecs.version": {
4343
"type": "string",
4444
"required": true,
45-
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-ecs.html"
45+
"top_level_field": true,
46+
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-ecs.html",
47+
"comment": [
48+
"This field SHOULD NOT be a nested object field but at the top level with a dot in the property name.",
49+
"This is to make the JSON logs more human-readable."
50+
]
4651
},
4752
"labels": {
4853
"type": "object",

0 commit comments

Comments
 (0)