Skip to content

Commit

Permalink
added custom logging configuration to kibana
Browse files Browse the repository at this point in the history
  • Loading branch information
AronKa-SAG committed Jun 14, 2024
1 parent acb6280 commit e98a6ee
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apigateway/helm/templates/kibana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,21 @@ spec:
{{- else }}
elasticsearch.ssl.verificationMode: none
{{- end }}
{{- if .Values.kibana.customLogging.enabled }}
logging:
{{- if .Values.kibana.customLogging.appenders }}
appenders:
{{- toYaml .Values.kibana.customLogging.appenders | nindent 8 }}
{{- end }}
{{- if .Values.kibana.customLogging.root }}
root:
{{- toYaml .Values.kibana.customLogging.root | nindent 8 }}
{{- end }}
{{- if .Values.kibana.customLogging.loggers }}
loggers:
{{- toYaml .Values.kibana.customLogging.loggers | nindent 8 }}
{{- end }}
{{- end }}
http:
tls:
selfSignedCertificate:
Expand Down
24 changes: 24 additions & 0 deletions apigateway/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,30 @@ kibana:
# -- The securityContext for kibana container.
securityContext: {}

# -- Custom logging configuration for kibana container.
customLogging:
# -- Enable custom logging configuration.
enabled: false
# -- Define appenders for custom logging config.
# Example for logging to file:
# file:
# type: file
# fileName: /usr/share/kibana/logs/kibana.log
# layout:
# type: pattern
appenders: {}
# -- Define which appenders are used by root logger.
# Example for logging to file additionally to default/console:
# appenders: [file, default]
# level: warn
root: {}
# -- Define loggers other than root logger.
# Example for custom server logger:
# - name: server
# appenders: [console]
# level: warn
loggers: []

# -- The definition of extra volumes for kibana.
extraVolumes: []

Expand Down

0 comments on commit e98a6ee

Please sign in to comment.