Don't let fluentd pipe its own logs directly back into itself.

This commit is contained in:
Alex Robinson 2016-01-26 23:59:27 +00:00
parent 95a4ea3fc8
commit ac13e851e2
2 changed files with 10 additions and 0 deletions

View File

@ -100,6 +100,11 @@
# problem yet to be solved as secrets are not usable in static pods which the fluentd
# pod must be until a per-node controller is available in Kubernetes.
# Do not directly collect fluentd's own logs to avoid infinite loops.
<match fluent.**>
type null
</match>
<source>
type tail
path /var/log/containers/*.log

View File

@ -42,6 +42,11 @@
# the name of the Kubernetes container regardless of how many times the
# Kubernetes pod has been restarted (resulting in a several Docker container IDs).
# Do not directly collect fluentd's own logs to avoid infinite loops.
<match fluent.**>
type null
</match>
<source>
type tail
format json