Skip to content

Commit ab66005

Browse files
committed
Add tenant_subdomain to request
1 parent ace5989 commit ab66005

File tree

5 files changed

+30
-9
lines changed

5 files changed

+30
-9
lines changed

cf-java-logging-support-core/beats/app-logs/docs/fields.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ A unique identifier that can be used to correlate multiple messages to a tenant.
102102

103103
==== tenant_subdomain
104104

105-
example: e24a5963-95eb-4568-b1ae-81b67c41e99a
105+
example: acme-inc
106106

107107
required: False
108108

109-
A field adding the possibility to add the specific tenant subdmain of the xsuaa.
109+
A unique identifier that represents the subdomain of the current tenant specific request url, e.g. acme-inc in https://acme-inc.eu10.cloud.alm.sap/home
110110

111111

112112
==== component_id

cf-java-logging-support-core/beats/app-logs/etc/fields.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ ctx:
8686
- name: "tenant_subdomain"
8787
string: string
8888
required: false
89-
example: "e24a5963-95eb-4568-b1ae-81b67c41e99a"
89+
example: "acme-inc"
9090
description: |
91-
A field adding the possibility to add the specific tenant subdmain of the xsuaa.
92-
91+
A unique identifier that represents the subdomain of the current tenant specific request url, e.g. acme-inc in https://acme-inc.eu10.cloud.alm.sap/home
92+
9393
- name: "component_id"
9494
type: string
9595
required: true

cf-java-logging-support-core/beats/request-metrics/docs/fields.asciidoc

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,15 @@ required: False
109109
A unique identifier that can be used to correlate multiple messages to a tenant.
110110

111111

112+
==== tenant_subdomain
113+
114+
example: acme-inc
115+
116+
required: False
117+
118+
A unique identifier that represents the subdomain of the current tenant specific request url, e.g. acme-inc in https://acme-inc.eu10.cloud.alm.sap/home
119+
120+
112121
==== component_id
113122

114123
type: string
@@ -298,7 +307,7 @@ never the case.
298307

299308
type: date
300309

301-
example: 2015-01-24 14:06:05.071Z
310+
example: 2015-01-24 14:06:05.071000+00:00
302311

303312
format: YYYY-MM-DDTHH:MM:SS.milliZ
304313

@@ -316,7 +325,7 @@ shipped with the request (in the form of a header or meta data).
316325

317326
type: date
318327

319-
example: 2015-01-24 14:06:05.071Z
328+
example: 2015-01-24 14:06:05.071000+00:00
320329

321330
format: YYYY-MM-DDTHH:MM:SS.milliZ
322331

@@ -338,7 +347,7 @@ request has been received (preferred).
338347

339348
type: date
340349

341-
example: 2015-01-24 14:06:05.071Z
350+
example: 2015-01-24 14:06:05.071000+00:00
342351

343352
format: YYYY-MM-DDTHH:MM:SS.milliZ
344353

@@ -357,7 +366,7 @@ has been sent.
357366

358367
type: date
359368

360-
example: 2015-01-24 14:06:05.071Z
369+
example: 2015-01-24 14:06:05.071000+00:00
361370

362371
format: YYYY-MM-DDTHH:MM:SS.milliZ
363372

cf-java-logging-support-core/beats/request-metrics/etc/fields.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ ctx:
9292
description: |
9393
A unique identifier that can be used to correlate multiple messages to a tenant.
9494
95+
- name: "tenant_subdomain"
96+
string: string
97+
required: false
98+
example: "acme-inc"
99+
description: |
100+
A unique identifier that represents the subdomain of the current tenant specific request url, e.g. acme-inc in https://acme-inc.eu10.cloud.alm.sap/home
101+
95102
- name: "component_id"
96103
type: string
97104
required: true

cf-java-logging-support-core/beats/request-metrics/etc/request-metrics.template.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@
183183
"index": "not_analyzed",
184184
"type": "string"
185185
},
186+
"tenant_subdomain": {
187+
"doc_values": true,
188+
"index": "not_analyzed",
189+
"type": "string"
190+
},
186191
"timestamp": {
187192
"doc_values": true,
188193
"ignore_malformed": true,

0 commit comments

Comments
 (0)