Let fluentd-es log by not redirecting to a file within the container

and only using -q (warning logs only) rather than -qq (error logs only).
This commit is contained in:
Alex Robinson 2015-08-26 21:38:37 +00:00
parent b3154a7815
commit d02dc64036
3 changed files with 3 additions and 3 deletions

View File

@ -40,4 +40,4 @@ RUN /usr/sbin/td-agent-gem install fluent-plugin-record-reformer
COPY td-agent.conf /etc/td-agent/td-agent.conf COPY td-agent.conf /etc/td-agent/td-agent.conf
# Run the Fluentd service. # Run the Fluentd service.
CMD /usr/sbin/td-agent "$FLUENTD_ARGS" > /var/log/td-agent/td-agent.log CMD /usr/sbin/td-agent "$FLUENTD_ARGS"

View File

@ -1,7 +1,7 @@
.PHONY: build push .PHONY: build push
IMAGE = fluentd-elasticsearch IMAGE = fluentd-elasticsearch
TAG = 1.9 TAG = 1.10
build: build:
docker build -t gcr.io/google_containers/$(IMAGE):$(TAG) . docker build -t gcr.io/google_containers/$(IMAGE):$(TAG) .

View File

@ -12,7 +12,7 @@ spec:
cpu: 100m cpu: 100m
env: env:
- name: "FLUENTD_ARGS" - name: "FLUENTD_ARGS"
value: "-qq" value: "-q"
volumeMounts: volumeMounts:
- name: varlog - name: varlog
mountPath: /varlog mountPath: /varlog