From 9ab59becbf18bc3e32665965df8b9f2628036788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Fri, 19 Jan 2018 18:06:03 +0100 Subject: [PATCH] updated fluentd configmap with 1.1.0 compatible version --- .../fluentd-es-configmap.yaml | 169 +++++++++++------- 1 file changed, 106 insertions(+), 63 deletions(-) diff --git a/cluster/addons/fluentd-elasticsearch/fluentd-es-configmap.yaml b/cluster/addons/fluentd-elasticsearch/fluentd-es-configmap.yaml index fc2079c5864..11acd0c9b11 100644 --- a/cluster/addons/fluentd-elasticsearch/fluentd-es-configmap.yaml +++ b/cluster/addons/fluentd-elasticsearch/fluentd-es-configmap.yaml @@ -1,6 +1,16 @@ kind: ConfigMap apiVersion: v1 +metadata: + name: fluentd-es-config-v0.1.2 + namespace: kube-system + labels: + addonmanager.kubernetes.io/mode: Reconcile data: + system.conf: |- + + root_dir /tmp/fluentd-buffers/ + + containers.input.conf: |- # This configuration file for Fluentd / td-agent is used # to watch changes to Docker log files. The kubelet creates symlinks that @@ -101,25 +111,19 @@ data: # CRI Log Example: # 2016-02-17T00:04:05.931087621Z stdout F [info:2016-02-16T16:04:05.930-08:00] Some log text here - type tail + @id fluentd-containers.log + @type tail path /var/log/containers/*.log - pos_file /var/log/es-containers.log.pos + pos_file /var/log/fluentd-containers.log.pos time_format %Y-%m-%dT%H:%M:%S.%NZ tag raw.kubernetes.* + format json read_from_head true - format multi_format - - format json - time_key time - time_format %Y-%m-%dT%H:%M:%S.%NZ - - - format /^(? + # Detect exceptions in the log output and forward them as one log entry. + @id raw.kubernetes @type detect_exceptions remove_tag_prefix raw message log @@ -128,14 +132,28 @@ data: max_bytes 500000 max_lines 1000 + system.input.conf: |- + # Example: + # 2015-12-21 23:17:22,066 [salt.state ][INFO ] Completed state [net.ipv4.ip_forward] at time 23:17:22.066081 + + @id minion + @type tail + format /^(?