Skip to content

Commit

Permalink
Change Fluentd config to read from head of Docker container logs
Browse files Browse the repository at this point in the history
  • Loading branch information
satnam6502 committed Mar 10, 2015
1 parent 7b72d95 commit 2486de1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: build push

TAG = 1.0
TAG = 1.1

build:
sudo docker build -t kubernetes/fluentd-elasticsearch:$(TAG) .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cluster/saltbase/salt/fluentd-es/fluentd-es.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: v1beta2
id: fluentd-to-elasticsearch
containers:
- name: fluentd-es
image: kubernetes/fluentd-elasticsearch:1.0
image: kubernetes/fluentd-elasticsearch:1.1
volumeMounts:
- name: containers
mountPath: /var/lib/docker/containers
Expand Down

0 comments on commit 2486de1

Please sign in to comment.