More logging tuning

This commit is contained in:
Stefan Reimer 2020-12-10 06:44:58 -08:00
parent 89dc890c74
commit 3820858046
3 changed files with 6 additions and 69 deletions

View File

@ -2,8 +2,8 @@ apiVersion: v2
name: kubezero-logging name: kubezero-logging
description: KubeZero Umbrella Chart for complete EFK stack description: KubeZero Umbrella Chart for complete EFK stack
type: application type: application
version: 0.5.0 version: 0.5.1
appVersion: 1.3.0 appVersion: 1.3.1
home: https://kubezero.com home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords: keywords:

View File

@ -59,10 +59,9 @@
script /fluent-bit/etc/functions.lua script /fluent-bit/etc/functions.lua
call nest_k8s_ns call nest_k8s_ns
{{- if not .Values.config.output }} {{- if .Values.config.outputs }}
{{ .Values.config.outputs }} {{ .Values.config.outputs }}
{{- end }} {{- else }}
{{- with .Values.config.output }} {{- with .Values.config.output }}
[OUTPUT] [OUTPUT]
Match * Match *
@ -74,3 +73,4 @@
Send_options true Send_options true
Require_ack_response true Require_ack_response true
{{- end }} {{- end }}
{{- end }}

View File

@ -105,67 +105,4 @@ updateStrategy: {}
existingConfigMap: "" existingConfigMap: ""
## https://docs.fluentbit.io/manual/administration/configuring-fluent-bit ## https://docs.fluentbit.io/manual/administration/configuring-fluent-bit
config: config: {}
## https://docs.fluentbit.io/manual/service
service: |
[SERVICE]
Flush 1
Daemon Off
Log_Level info
Parsers_File parsers.conf
Parsers_File custom_parsers.conf
HTTP_Server On
HTTP_Listen 0.0.0.0
HTTP_Port 2020
## https://docs.fluentbit.io/manual/pipeline/inputs
inputs: |
[INPUT]
Name tail
Path /var/log/containers/*.log
Parser docker
Tag kube.*
Mem_Buf_Limit 5MB
Skip_Long_Lines On
[INPUT]
Name systemd
Tag host.*
Systemd_Filter _SYSTEMD_UNIT=kubelet.service
Read_From_Tail On
## https://docs.fluentbit.io/manual/pipeline/filters
filters: |
[FILTER]
Name kubernetes
Match kube.*
Merge_Log On
Keep_Log Off
K8S-Logging.Parser On
K8S-Logging.Exclude On
## https://docs.fluentbit.io/manual/pipeline/outputs
outputs: |
[OUTPUT]
Name es
Match kube.*
Host elasticsearch-master
Logstash_Format On
Retry_Limit False
[OUTPUT]
Name es
Match host.*
Host elasticsearch-master
Logstash_Format On
Logstash_Prefix node
Retry_Limit False
## https://docs.fluentbit.io/manual/pipeline/parsers
customParsers: |
[PARSER]
Name docker_no_time
Format json
Time_Keep Off
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L