Make Fluentd to Cloud Logging collector read from head
This commit is contained in:
parent
bcae5715a1
commit
d395efa463
@ -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
|
||||
|
@ -6,7 +6,7 @@
|
||||
.PHONY: build push
|
||||
|
||||
|
||||
TAG = 1.0
|
||||
TAG = 1.1
|
||||
|
||||
build:
|
||||
sudo docker build -t kubernetes/fluentd-gcp:$(TAG) .
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user