-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Add TCP support for GELF log driver #34758
Add TCP support for GELF log driver #34758
Conversation
Signed-off-by: Ghislain Bourgeois <[email protected]>
Signed-off-by: Ghislain Bourgeois <[email protected]>
Signed-off-by: Ghislain Bourgeois <[email protected]>
Signed-off-by: Ghislain Bourgeois <[email protected]>
ping @vieux @cpuguy83 @mariussturm PTAL |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ping @mariussturm could you have a look at this one? |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for reviewing @mariussturm |
Thanks a lot for this PR. Would you please also consider tcp+tls:// ? |
@pdepaepe I will look into what is involved, but do not expect it too quickly. This will need a PR in the go-gelf library before making the PR in moby. From my experience with this one, this could take a couple of months. |
@@ -76,7 +76,7 @@ github.com/syndtr/gocapability 2c00daeb6c3b45114c80ac44119e7b8801fdd852 | |||
github.com/golang/protobuf 7a211bcf3bce0e3f1d74f9894916e6f116ae83b4 | |||
|
|||
# gelf logging driver deps | |||
github.com/Graylog2/go-gelf 7029da823dad4ef3a876df61065156acb703b2ea | |||
github.com/Graylog2/go-gelf v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, turned out v2
here is a branch, not a tag
@ghislainbourgeois I'm trying to send logs to logstash. Unfortunately its not possible to set '\0' as delimiter in logstash. Should this maybe be configurable so that \n could be used (as this is the default for most log parsers). |
- What I did
I added TCP support to the GELF log driver. closes #33495 closes #29871
The documentation PR can be found here
- How I did it
The following changes were done:
- How to verify it
Run a Graylog server and configure a TCP GELF Input and a UDP GELF Input.
Run a container with:
- Description for the changelog
Added TCP support to the GELF log driver.
- A picture of a cute animal (not mandatory but encouraged)
