kind: ConfigMap apiVersion: v1 metadata: name: fluentd-es-config-v0.2.1 namespace: logging labels: addonmanager.kubernetes.io/mode: Reconcile data: system.conf: |- root_dir /tmp/fluentd-buffers/ containers.input.conf: |- @id fluentd-containers.log @type tail path /var/log/containers/*.log pos_file /var/log/es-containers.log.pos tag raw.kubernetes.* read_from_head true @type 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 stream stream multiline_flush_interval 5 max_bytes 500000 max_lines 1000 # Concatenate multi-line logs @id filter_concat @type concat key message multiline_end_regexp /\n$/ separator "" # Enriches records with Kubernetes metadata @id filter_kubernetes_metadata @type kubernetes_metadata # Fixes json fields in Elasticsearch @id filter_parser @type parser key_name log reserve_data true remove_key_name_field true @type multi_format format json format none 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 /^(?