Add a prefix to the POS file for Fluentd to Elasticsearch
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
.PHONY: build push
|
||||
|
||||
TAG = 1.2
|
||||
TAG = 1.3
|
||||
|
||||
build:
|
||||
sudo docker build -t kubernetes/fluentd-elasticsearch:$(TAG) .
|
||||
|
@@ -38,7 +38,7 @@
|
||||
format json
|
||||
time_key time
|
||||
path /var/lib/docker/containers/*/*-json.log
|
||||
pos_file /var/lib/docker/containers/containers.log.pos
|
||||
pos_file /var/lib/docker/containers/es-containers.log.pos
|
||||
time_format %Y-%m-%dT%H:%M:%S
|
||||
tag docker.*
|
||||
read_from_head true
|
||||
@@ -62,7 +62,7 @@
|
||||
type tail
|
||||
format none
|
||||
path /varlog/kubelet.log
|
||||
pos_file /varlog/kubelet.log.pos
|
||||
pos_file /varlog/es-kubelet.log.pos
|
||||
tag kubelet
|
||||
</source>
|
||||
|
||||
|
Reference in New Issue
Block a user