mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 11:42:14 +00:00
Make Fluentd to Cloud Logging collector read from head
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user