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

Unable to use tcp in --gelf-address #29871

Closed
rajasekaran07 opened this issue Jan 4, 2017 · 8 comments · Fixed by #34758
Closed

Unable to use tcp in --gelf-address #29871

rajasekaran07 opened this issue Jan 4, 2017 · 8 comments · Fixed by #34758
Labels
area/logging kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.

Comments

@rajasekaran07
Copy link

Hello,

We are running our application in AWS ECS and we are trying to collect our container logs via TCP port using gelf log driver. But if I used TCP in --log-driver-options --gelf-address tcp://ipaddress:port my container is not starting.

docker: Error response from daemon: gelf: endpoint needs to be UDP.

Kindly suggest how to use TCP in gelf-address option.

My docker version is 1.12

Regards,
Raja

@thaJeztah thaJeztah added area/logging kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. labels Jan 4, 2017
@mariussturm
Copy link
Contributor

Yes right, currently only UDP is supported.

@thaJeztah
Copy link
Member

Thanks @mariussturm

@rajasekaran07 given the discussion above, I'm closing this issue, because it cannot be implemented in docker currently. Feel free to ping me though if it's implemented in GELF at some point.

Also note that we are working on an option to have external logging driver plugins (see #28403), which would more easily allow to add custom logging drivers to docker that have features that are not part of the "core" docker functionality

@rajasekaran07
Copy link
Author

@thaJeztah @mariussturm Can we add additional tags in awslogs driver. Because while taking logs using awslogs driver we are getting minimal information. (Only container ID), How can I take image name, container name and host IP.

Regards,
Raja

@mariussturm
Copy link
Contributor

@rajasekaran07 what is the awslogs driver? Anyway this is a support question that should go the IRC channel or mailing list. GH issues are used for bug reports in Docker itself. Thanks.

@thaJeztah
Copy link
Member

@rajasekaran07 more options coming to the awslogs driver in docker 1.13, see #27707, and docker/docs#380

@rajasekaran07
Copy link
Author

rajasekaran07 commented Jan 4, 2017

@mariussturm awslogs driver is a docker log driver, which stream docker logs to AWS Cloudwatch log group. But it only taking container ID. I am trying to get all docker information like image name, host ip.. etc...
Thanks,
Raja

@Hermain
Copy link

Hermain commented Jan 5, 2018

FYI Gelf TCP is supported with the 17.12 ce as seen in the docs
And I can confirm it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logging kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants