From c34ecf710038c9fa2ccbf05da25cb0d926286233 Mon Sep 17 00:00:00 2001 From: Christopher Eck Date: Thu, 18 Feb 2016 11:07:27 -0800 Subject: [PATCH] Enable fluentd to parse the sub-second portion of timestamps coming from docker logs. --- .../fluentd-elasticsearch/fluentd-es-image/td-agent.conf | 6 ++++-- .../fluentd-gcp/fluentd-gcp-image/google-fluentd.conf | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/cluster/addons/fluentd-elasticsearch/fluentd-es-image/td-agent.conf b/cluster/addons/fluentd-elasticsearch/fluentd-es-image/td-agent.conf index 1e2013da01d6e..d76522680aae2 100644 --- a/cluster/addons/fluentd-elasticsearch/fluentd-es-image/td-agent.conf +++ b/cluster/addons/fluentd-elasticsearch/fluentd-es-image/td-agent.conf @@ -105,11 +105,13 @@ type null +# Example: +# {"log":"[info:2016-02-16T16:04:05.930-08:00] Some log text here\n","stream":"stdout","time":"2016-02-17T00:04:05.931087621Z"} type tail path /var/log/containers/*.log pos_file /var/log/es-containers.log.pos - time_format %Y-%m-%dT%H:%M:%S + time_format %Y-%m-%dT%H:%M:%S.%NZ tag kubernetes.* format json read_from_head true @@ -142,7 +144,7 @@ type tail format /^time="(?