Skip to content

Commit 2fc7f71

Browse files
authored
Add log.* fields to spec (#34)
1 parent 0760010 commit 2fc7f71

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

spec/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The following example describes a richer set of fields in an event that has not
4444
"origin": {
4545
"file": {
4646
"name": "App.java",
47-
"line": 42,
47+
"line": 42
4848
},
4949
"function": "methodName"
5050
}

spec/spec.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,29 @@
8181
"type": "string",
8282
"required": false,
8383
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-process.html"
84+
},
85+
"log.logger": {
86+
"type": "string",
87+
"required": false,
88+
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-log.html"
89+
},
90+
"log.origin.file.line": {
91+
"type": "integer",
92+
"required": false,
93+
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-log.html",
94+
"comment": "Should be opt-in as it requires the logging library to capture a stack trace for each log event."
95+
},
96+
"log.origin.file.name": {
97+
"type": "string",
98+
"required": false,
99+
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-log.html",
100+
"comment": "Should be opt-in as it requires the logging library to capture a stack trace for each log event."
101+
},
102+
"log.origin.function": {
103+
"type": "string",
104+
"required": false,
105+
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-log.html",
106+
"comment": "Should be opt-in as it requires the logging library to capture a stack trace for each log event."
84107
}
85108
}
86109
}

0 commit comments

Comments
 (0)