Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fluentd-async-connect support #116

Open
benjamin-bergia opened this issue May 5, 2017 · 2 comments
Open

fluentd-async-connect support #116

benjamin-bergia opened this issue May 5, 2017 · 2 comments

Comments

@benjamin-bergia
Copy link

Apparently the fluentd-async-connect option is not supported on the version that I am running (docker release-20161124-20161123T224055Z-g2c4c350) is it available on newer versions or is there any plan to implement it in the future ?

This option is very useful when bootstraping new environments.

@sgohl
Copy link

sgohl commented Jul 6, 2017

Does not work with

Docker version 17.06.0-ce-rc4, build 29fcd5d

either:

# docker run -d --log-driver=fluentd --log-opt="fluentd-address=localhost:24224" 
--log-opt="fluentd-async-connect"  nginx
8cd56b8003bad9592a8f044f4992e137382bedfbe8c5a4450bbc66f26d8f9850
docker: Error response from daemon: failed to initialize logging driver: 
dial tcp [::1]:24224: getsockopt: connection refused.

in contrast to the docs who say:

If container cannot connect to the Fluentd daemon, the container stops immediately unless the fluentd-async-connect option is used.

@hassanfarid
Copy link

hassanfarid commented Apr 30, 2020

Try passing option like below:

docker run --rm --log-driver=fluentd --log-opt fluentd-async-connect=true <image> ls -lah

Reference: https://forums.docker.com/t/aggregate-container-logs-with-fluentd-running-in-a-container/9122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants