From f5c1df0a73a956a47caf250060864b65521ee478 Mon Sep 17 00:00:00 2001 From: Satnam Singh Date: Fri, 7 Nov 2014 16:54:35 -0800 Subject: [PATCH] Change tag to latest and use correct pos file syntax for detection of log rotation --- contrib/logging/fluentd-es-image/Makefile | 2 +- contrib/logging/fluentd-es-image/td-agent.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/logging/fluentd-es-image/Makefile b/contrib/logging/fluentd-es-image/Makefile index d4a7c051930..d47c2b1f4ad 100644 --- a/contrib/logging/fluentd-es-image/Makefile +++ b/contrib/logging/fluentd-es-image/Makefile @@ -1,6 +1,6 @@ .PHONY: build push -TAG = 1.0 +TAG = latest build: sudo docker build -t kubernetes/fluentd-elasticsearch:$(TAG) . diff --git a/contrib/logging/fluentd-es-image/td-agent.conf b/contrib/logging/fluentd-es-image/td-agent.conf index 08f7cf5cd71..209655a6480 100644 --- a/contrib/logging/fluentd-es-image/td-agent.conf +++ b/contrib/logging/fluentd-es-image/td-agent.conf @@ -38,6 +38,7 @@ format json time_key time path /var/lib/docker/containers/*/*-json.log + pos_file /var/lib/docker/containers/containers.log.pos time_format %Y-%m-%dT%H:%M:%S tag docker.container.*