config:
service: |
[SERVICE]
Daemon Off
Flush {{ .Values.flush }}
Log_Level {{ .Values.logLevel }}
Parsers_File /fluent-bit/etc/parsers.conf
Parsers_File /fluent-bit/etc/conf/custom_parsers.conf
HTTP_Server On
HTTP_Listen 0.0.0.0
HTTP_Port {{ .Values.metricsPort }}
Health_Check On
## https://docs.fluentbit.io/manual/pipeline/inputs
inputs: |
[INPUT]
Name tail
Path /var/log/containers/*.log
multiline.parser docker, cri
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
Buffer_Size 32k
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 syslog
Match kube.*
Host 10.10.122.69
Port 514
Mode udp
Retry_Limit False
[OUTPUT]
Name forward
Match *
Upstream upstream.conf
# [OUTPUT]
# Name forward
# Match host.*
# Host 10.10.122.69
# Port 514
# Retry_Limit False
## https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/classic-mode/upstream-servers
## This configuration is deprecated, please use `extraFiles` instead.
upstream: {}
## 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
# This allows adding more files with arbitrary filenames to /fluent-bit/etc/conf by providing key/value pairs.
# The key becomes the filename, the value becomes the file content.
extraFiles:
upstream.conf: |
[UPSTREAM]
graylog
[NODE]
name grayloghost1
host 10.10.122.38
port 12201
[NODE]
name grayloghost2
host 10.10.122.39
port 12201
# example.conf: |
# [OUTPUT]
# Name example
# Match foo.*
# Host bar
Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
db.updateUser(
"graylog",
{
authenticationRestrictions: [
{
clientSource: ["10.223.223.223"],
serverAddress: ["10.223.223.223"]
},
{
clientSource: ["10.223.223.224"],
serverAddress: ["10.223.223.224"]
}
]
}
)