Skip to content

Commit 48c8066

Browse files
authored
Merge pull request #66 from reevoo/document-loops
docs: explain configurations that could create infinite loops
2 parents a1e354c + 6fb253e commit 48c8066

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,16 @@ Another strategy would be to use a plugin like [fluent-plugin-concat](https://gi
186186
* You can use an [offical fluentd docker](https://github.com/fluent/fluentd-docker-image) image as a base, (choose the debian based version, as alpine linux doesn't support systemd).
187187
* Bind mount `/var/log/journal` into your container.
188188

189+
> ### I am seeing lots of logs being generated very rapidly!
190+
191+
This commonly occurs when a loop is created when fluentd is logging to STDOUT, and the collected logs are then written to the systemd journal. This could happen if you run fluentd as a systemd serivce, or as a docker container with the systemd log driver.
192+
193+
Workarounds include:
194+
195+
* Use another fluentd output
196+
* Don't read every message from the journal, set some `matches` so you only read the messages you are interested in.
197+
* Disable the systemd log driver when you launch your fluentd docker container, e.g. by passing `--log-driver json-file`
198+
189199
### Example
190200

191201
For an example of a full working setup including the plugin, take a look at [the fluentd kubernetes daemonset](https://github.com/fluent/fluentd-kubernetes-daemonset)

0 commit comments

Comments
 (0)