Skip to content

Commit 986da6f

Browse files
charts/*: default logFormat=StructuredJSON format (#2559)
* charts/*: default logFormat=StructuredJSON format This format was introduced in #1951 and #1959. * Hi CI * spar: Ensure integration test for testing logging works with StructuredJSON logs Co-authored-by: Akshay Mankar <[email protected]>
1 parent c7cf1a5 commit 986da6f

File tree

18 files changed

+33
-17
lines changed

18 files changed

+33
-17
lines changed

changelog.d/2-features/charts-logging

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
charts/wire-server: default log format everywhere to StructuredJSON format (introduced in #1951 and #1959)

charts/brig/templates/configmap.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ metadata:
1010
data:
1111
{{- with .Values.config }}
1212
brig.yaml: |
13-
logNetStrings: True # log using netstrings encoding:
14-
# http://cr.yp.to/proto/netstrings.txt
13+
logNetStrings: {{ .logNetStrings }}
1514
logFormat: {{ .logFormat }}
1615
logLevel: {{ .logLevel }}
1716

charts/brig/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ metrics:
1717
enable: false
1818
config:
1919
logLevel: Info
20-
logFormat: JSON
20+
logFormat: StructuredJSON
21+
logNetStrings: false
2122
cassandra:
2223
host: aws-cassandra
2324
elasticsearch:

charts/cannon/templates/configmap.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
apiVersion: v1
22
data:
33
cannon.yaml: |
4-
logFormat: StructuredJSON
4+
logFormat: {{ .Values.config.logFormat }}
55
logLevel: {{ .Values.config.logLevel }}
6+
logNetStrings: {{ .Values.config.logNetStrings }}
67
78
cannon:
89
host: 0.0.0.0

charts/cannon/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ nginzImage:
99
pullPolicy: IfNotPresent
1010
config:
1111
logLevel: Info
12+
logFormat: StructuredJSON
13+
logNetStrings: false
1214

1315
# See also the section 'Controlling the speed of websocket draining during
1416
# cannon pod replacement' in docs/how-to/install/configuration-options.rst

charts/cargohold/templates/configmap.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ metadata:
44
name: "cargohold"
55
data:
66
cargohold.yaml: |
7-
logNetStrings: True # log using netstrings encoding: http://cr.yp.to/proto/netstrings.txt
7+
logFormat: {{ .Values.config.logFormat }}
88
logLevel: {{ .Values.config.logLevel }}
9+
logNetStrings: {{ .Values.config.logNetStrings }}
910
1011
cargohold:
1112
host: 0.0.0.0

charts/cargohold/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ resources:
1717
cpu: "500m"
1818
config:
1919
logLevel: Info
20+
logFormat: StructuredJSON
21+
logNetStrings: false
2022
enableFederator: false # keep enableFederator default in sync with brig and galley chart's config.enableFederator as well as wire-server chart's tag.federator
2123
aws:
2224
region: "eu-west-1"

charts/federator/templates/configmap.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ data:
3737
3838
{{- with .Values.config }}
3939
40-
logNetStrings: True # log using netstrings encoding:
41-
# http://cr.yp.to/proto/netstrings.txt
40+
logNetStrings: {{ .logNetStrings }}
4241
logFormat: {{ .logFormat }}
4342
logLevel: {{ .logLevel }}
4443

charts/federator/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ resources:
2424
cpu: "500m"
2525
config:
2626
logLevel: Info
27-
logFormat: JSON
27+
logFormat: StructuredJSON
28+
logNetStrings: false
2829
optSettings:
2930
# Defaults to using system CA store in the federator image for making
3031
# connections to remote federators.

charts/galley/templates/configmap.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ metadata:
55
data:
66
{{- with .Values.config }}
77
galley.yaml: |
8-
logNetStrings: True # log using netstrings encoding:
9-
# http://cr.yp.to/proto/netstrings.txt
10-
logLevel: {{ .logLevel }}
118
logFormat: {{ .logFormat }}
9+
logLevel: {{ .logLevel }}
10+
logNetStrings: {{ .logNetStrings }}
1211
1312
galley:
1413
host: 0.0.0.0

0 commit comments

Comments
 (0)