Logging Operator
Search…
Fluentd
A configuration reference for fluentd service configuration in "Logging Operator"

Image Configuration

We can define our custom fluentd image configuration.
1
image: fluent/fluentd-kubernetes-daemonset:v1-debian-elasticsearch
2
imagePullPolicy: "IfNotPresent"
Copied!

Elasticsearch Configuration

Elasticsearch connection details information should be defined under the elasticsearch object.
1
elasticsearch:
2
host: "elasticsearch-cluster-ingestion"
3
username: elastic
4
password: "[email protected]"
5
tlsEnabled: true
Copied!

Log Prefix

Log prefix information to append the Kubernetes meta information in the fluentd index in elasticsearch.
1
logPrefix: namespace # namespace or podName
2
# index will be created like kubernetes-<namespace>
Copied!

Resources

Resources footprint can be defined under the resource object.
1
resources:
2
requests:
3
cpu: 100m
4
memory: 200Mi
5
limits:
6
cpu: 100m
7
memory: 200Mi
Copied!

Custom Configuration

Custom fluentd configuration for log parsing and aggregation.
1
customConfiguration:
2
kubelet.conf: |-
3
<source>
4
@type systemd
5
@id in_systemd_kubelet
6
matches [{ "_SYSTEMD_UNIT": "kubelet.service" }]
7
<storage>
8
@type local
9
persistent true
10
path /var/log/fluentd-journald-kubelet-cursor.json
11
</storage>
12
<entry>
13
fields_strip_underscores true
14
</entry>
15
read_from_head true
16
tag kubelet
17
</source>
Copied!
Last modified 1yr ago