29 lines
916 B
YAML
29 lines
916 B
YAML
fluentd:
|
|
enabled: true
|
|
forwarder:
|
|
initContainers:
|
|
- name: fluentd-init
|
|
image: busybox
|
|
command: ['/bin/sh', '-c', 'until nc -z exam-fluentd-0.exam-fluentd-headless.exam.svc.cluster.local ${EXAM_FLUENTD_AGGREGATOR_SERVICE_PORT_TCP-24224}; do sleep 5; done;']
|
|
configMapFiles:
|
|
fluentd-inputs.conf: |
|
|
<source>
|
|
@type http
|
|
port 9880
|
|
</source>
|
|
<source>
|
|
@type tail
|
|
path /var/log/containers/exam-*.log
|
|
exclude_path /var/log/containers/*fluentd*.log
|
|
pos_file /opt/bitnami/fluentd/logs/buffers/fluentd-docker.pos
|
|
tag kubernetes.*
|
|
read_from_head true
|
|
<parse>
|
|
@type json
|
|
time_key time
|
|
time_format %Y-%m-%dT%H:%M:%S.%NZ
|
|
</parse>
|
|
</source>
|
|
<filter kubernetes.**>
|
|
@type kubernetes_metadata
|
|
</filter> |