Add a prefix to the POS file for Fluentd to Elasticsearch

This commit is contained in:
Satnam Singh 2015-03-17 13:13:03 -07:00
parent a62673d226
commit 985d5c1f95
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
.PHONY: build push
TAG = 1.2
TAG = 1.3
build:
sudo docker build -t kubernetes/fluentd-elasticsearch:$(TAG) .

View File

@ -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>

View File

@ -2,7 +2,7 @@ version: v1beta2
id: fluentd-to-elasticsearch
containers:
- name: fluentd-es
image: kubernetes/fluentd-elasticsearch:1.2
image: kubernetes/fluentd-elasticsearch:1.3
env:
- name: FLUENTD_ARGS
value: -qq