diff --git a/cluster/addons/fluentd-gcp/fluentd-gcp-configmap.yaml b/cluster/addons/fluentd-gcp/fluentd-gcp-configmap.yaml index 919eea4aac6..c9c47692558 100644 --- a/cluster/addons/fluentd-gcp/fluentd-gcp-configmap.yaml +++ b/cluster/addons/fluentd-gcp/fluentd-gcp-configmap.yaml @@ -46,33 +46,42 @@ 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 + @type tail path /var/log/containers/*.log pos_file /var/log/gcp-containers.log.pos tag reform.* read_from_head true - format multi_format - - format json - time_key time - time_format %Y-%m-%dT%H:%M:%S.%NZ - - - format /^(? + format none - type parser + @type parser + key_name message + + @type multi_format + + format json + time_key time + time_format %Y-%m-%dT%H:%M:%S.%NZ + + + format /^(? + + + + + @type parser format /^(?\w)(? - type record_reformer + @type record_reformer enable_ruby true tag raw.kubernetes.${tag_suffix[4].split('-')[0..-2].join('-')} @@ -92,7 +101,7 @@ data: # Example: # Dec 21 23:17:22 gke-foo-1-1-4b5cbd14-node-4eoj startupscript: Finished running startup script /var/run/google.startup.script - type tail + @type tail format syslog path /var/log/startupscript.log pos_file /var/log/gcp-startupscript.log.pos @@ -104,7 +113,7 @@ data: # time="2016-02-04T07:53:57.505612354Z" level=error msg="HTTP Error" err="No such image: -f" statusCode=404 # TODO(random-liu): Remove this after cri container runtime rolls out. - type tail + @type tail format /^time="(?