Change Fluentd config to read from head of Docker container logs

This commit is contained in:
Satnam Singh
2015-03-09 17:14:38 -07:00
parent 7b72d9539f
commit 2486de1287
3 changed files with 5 additions and 4 deletions

View File

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

View File

@@ -40,10 +40,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 elasticsearch
log_level info
include_tag_key true