@@ -46,7 +46,7 @@ type: date
4646
4747required: True
4848
49- The date when this log message was written.
49+ The human-readable date when the message was written.
5050
5151
5252==== written_ts
@@ -57,7 +57,7 @@ example: 1456820553816849408
5757
5858required: True
5959
60- The timestamp in nano-second precision when this request metric message was written.
60+ The timestamp in nano-second precision when the message was written.
6161
6262
6363==== correlation_id
@@ -68,11 +68,10 @@ example: db2d002e-2702-41ec-66f5-c002a80a3d3f
6868
6969required: True
7070
71- Should provide a unique identifier that can be used to correlate multiple
72- log messages into a logical unit (aka "business transaction")..
71+ A unique identifier that can be used to correlate multiple messages into a logical unit.
7372
7473Currently, we use a UUID for that matter, but future versions may use
75- SAP passport for this.
74+ a different key for this.
7675
7776"-" indicates that no proper value could be provided.
7877
@@ -83,6 +82,24 @@ inherit correlation ids from request processing layers further up in
8382the processing stack. If so, that id should be used.
8483
8584
85+ ==== request_id
86+
87+ example: e24a5963-95eb-4568-b1ae-81b67c41e99a
88+
89+ required: False
90+
91+ A unique identifier that can be used to correlate multiple messages to a request.
92+
93+
94+ ==== tenant_id
95+
96+ example: e24a5963-95eb-4568-b1ae-81b67c41e99a
97+
98+ required: False
99+
100+ A unique identifier that can be used to correlate multiple messages to a tenant.
101+
102+
86103==== component_id
87104
88105type: string
@@ -91,8 +108,8 @@ example: 9e6f3ecf-def0-4baf-8fac-9339e61d5645
91108
92109required: True
93110
94- Uniquely identifies the software component that has processed the current
95- request. It may either be a "service" or an "application" that can be deployed to
111+ A unique identifier of the software component that has written the message.
112+ It may either be a "service" or an "application" that can be deployed to
96113a container or VM, but it may not yet fully identify the actual "running instance" of
97114that "component".
98115
@@ -108,9 +125,7 @@ example: my-fancy-component
108125
109126required: False
110127
111- A human-friendly name representing the software component.
112-
113- NOTE: Most likely NOT unique!
128+ A human-friendly, not necessarily unique, name representing the software component.
114129
115130
116131==== component_type
@@ -121,8 +136,7 @@ example: application
121136
122137required: True
123138
124- Specifies the type of the sofware component that processed the current
125- request.
139+ The type of the software component that has written the message.
126140
127141Either "application" or "service"
128142
@@ -136,7 +150,7 @@ example: 7
136150required: True
137151
138152CF allows us to scale out horizontally by running several instances of the
139- same "component" (see above) in one container, this is identifying the instance.
153+ same "component" in one container, this is identifying the instance.
140154Defaults to "0".
141155
142156
@@ -150,8 +164,7 @@ format: ???
150164
151165required: False
152166
153- Will allow us to identify the "box" or "container" onto which the component
154- instance(s) were deployed.
167+ The unique identifier of the container on which the software component instance is running.
155168
156169NOTE: If security/privacy is not an issue, an IP address would be ok.
157170
@@ -167,8 +180,7 @@ example: 280437b3-dd8b-40b1-bbab-1f05a44345f8
167180
168181required: True
169182
170- Uniquley identifies the CF organization to which the component belongs which
171- emitted this message.
183+ The unique identifier of the Cloud Foundry organization to which the software component belongs.
172184
173185"-" indicates that no proper value could be provided.
174186
@@ -181,7 +193,7 @@ example: acme
181193
182194required: True
183195
184- A human-friendly name representing the CF organization.
196+ The human-readable name of the Cloud Foundry organization.
185197
186198NOTE: Most likely NOT unique!
187199
@@ -196,7 +208,7 @@ example: 280437b3-dd8b-40b1-bbab-1f05a44345f8
196208
197209required: True
198210
199- Uniquely identifies the CF space to which the component belongs which emitted this message .
211+ The unique identifier of the Cloud Foundry space to which the software component belongs.
200212
201213"-" indicates that no proper value could be provided.
202214
@@ -209,7 +221,7 @@ example: test
209221
210222required: True
211223
212- A human-friendly name representing the CF space.
224+ The human-readable name of the Cloud Foundry space.
213225
214226NOTE: Most likely NOT unique!
215227
@@ -222,7 +234,7 @@ example: [JAVA:BusinessLogicController]
222234
223235required: True
224236
225- The execution layer in the overall setup that emitted the message.
237+ The execution layer in the overall processing chain that has written the message.
226238
227239
228240==== type
@@ -231,6 +243,7 @@ type: string
231243
232244required: True
233245
246+ The type of the message.
234247To make the message self-contained this is the type tag.
235248As we're talking about log messages, it's always "logs".
236249
@@ -251,7 +264,7 @@ example: com.sap.demo.shine.OrderController
251264
252265required: True
253266
254- The actual entity that wrote the log message.
267+ The actual application entity that wrote the log message, e.g. the Java class name .
255268
256269NOTE: In Java, this is the name that was passed to the LoggerFactory
257270when instantiating a Logger.
@@ -265,7 +278,7 @@ example: http-nio-4655
265278
266279required: False
267280
268- Identifies the execution thread in which this log message has been written.
281+ The execution thread in which the log message has been written.
269282
270283"-" indicates that no proper value could be provided.
271284
@@ -289,12 +302,14 @@ example: This is a log messasge
289302
290303required: True
291304
292- The actual message string passed to the logger .
305+ The original log message that has been written by the application .
293306
294307
295308==== stacktrace
296309
297- type: string
310+ type: array
311+
312+ example: stacktrace: ["java.lang.NullPointerException","at com.sap.demo.exception.NullPointerException"]
298313
299314required: False
300315
@@ -314,10 +329,7 @@ A list of names to further categorize this log message.
314329
315330=== custom_fields Fields
316331
317- A JSON object representing the custom arguments passed to the logging
318- framework.
319-
320- NOTE: In Java, arguments have to be of type CustomField.
332+ A collection of non-standard fields as key-value pairs.
321333
322334NOTE: As this is "custom" there are no predefined fields here!
323335
0 commit comments