Make Fluentd to Cloud Logging collector read from head

This commit is contained in:
Satnam Singh 2015-03-16 16:19:07 -07:00
parent bcae5715a1
commit d395efa463
3 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@ version: v1beta2
id: fluentd-to-gcp
containers:
- name: fluentd-gcp-container
image: kubernetes/fluentd-gcp:1.0
image: kubernetes/fluentd-gcp:1.1
volumeMounts:
- name: containers
mountPath: /var/lib/docker/containers

View File

@ -6,7 +6,7 @@
.PHONY: build push
TAG = 1.0
TAG = 1.1
build:
sudo docker build -t kubernetes/fluentd-gcp:$(TAG) .

View File

@ -19,10 +19,11 @@
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.*
tag docker.*
read_from_head true
</source>
<match docker.container.**>
<match docker.**>
type google_cloud
flush_interval 5s
# Never wait longer than 5 minutes between retries.