Skip to content

Commit 868cdfb

Browse files
authored
Specify which fields are allowed to be nested (#33)
1 parent 9ac0cb4 commit 868cdfb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

spec/spec.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@
1515
"type": "string",
1616
"required": true,
1717
"index": 1,
18-
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-log.html"
18+
"top_level_field": true,
19+
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-log.html",
20+
"comment": [
21+
"This field SHOULD NOT be a nested object field but at the top level with a dot in the property name.",
22+
"This is to make the JSON logs more human-readable.",
23+
"Loggers MAY indent the log level so that the `message` field always starts at the exact same offset,",
24+
"no matter the number of characters the log level has.",
25+
"For example: `'DEBUG'` (5 chars) will not be indented, whereas ` 'WARN'` (4 chars) will be indented by one space character."
26+
]
1927
},
2028
"message": {
2129
"type": "string",

0 commit comments

Comments
 (0)