added logentries driver#22699
added logentries driver#22699caarlos0 wants to merge 2 commits intomoby:masterfrom caarlos0:logentries
Conversation
|
@GordonTheTurtle my commit is signed already :( |
|
@caarlos0 I don't see a signature in your commit. |
You signed it with GPG, but it needs a "signed-off-by .." in the commit message ( |
|
@thaJeztah ohh, got it, fixed. Thanks =) |
|
From a Logentries perspective everything looks fine, bsphere's lib is reliable and has been for a very long time. The only caveat though is that the logs do not send over SSL which is a bit sad tbh :( |
|
@StephenHynes7 Yeah :( |
|
@StephenHynes7 any lib that supports SSL? |
|
I'm not too familiar with logentries.com, @cpuguy83 told me it also implements syslog, so would there be downsides to using syslog instead of this driver? Basically, we want to limit the amount of new logging drivers, and prefer to only add ones that are really necessary (until we have a system in place to allow external logging drives) |
|
@thaJeztah It would require to have syslog installed, configured and running on the docker host... I guess having the log driver in docker itself gives more power because the user can send logs to different accounts in different containers, etc... |
|
@caarlos0 > any lib that supports SSL? There is but I think the GO library is worth going forward with, I will look to see if I can create a PR for SSL option for it and we can see what happens. |
|
@StephenHynes7 nice! Thanks |
|
@StephenHynes7 Nice, I'll take a look! |
|
Okay so now this driver will send logs over TLS so as far as Logentries is concerned we are good 👍 |
|
@StephenHynes7 I'll update the submodule here |
|
@caarlos0 can you check the "vendor" failure to see if it's genuine? Looks like the vendor-check found a difference between the actually vendored files and the ones it's expecting; |
|
@thaJeztah yeah, I need some help on that I guess.. I cloned the module inside the vendor folder and removed the Is that the correct way of doing this? |
|
Basically, you usually edit the script, then run it. This may take a while though (and I'm not sure it works correctly if you're running on OS X); alternatively you can fix by adding/removing the files mentioned above :-) |
|
@thaJeztah If I run the script, basically all vendors change... don't know why. I'll try to comment the others and leave only le_go and then run it. |
|
Definitely no problem with adding this driver. Library is clean and super tiny, but we really need to follow good practices and not embed the certificate in docker's code base. |
|
I just opened a PR removing the certificates from the le_go lib: bsphere/le_go#12 |
|
@cpuguy83 Updated the le_go submodule, vendored and rebased commits with master. |
|
LGTM |
|
Oh except vendor is not quite right: |
|
@cpuguy83 oops |
|
@cpuguy83 should be good now |
|
re-LGTM. |
|
ping? (I just merged it again with |
Signed-off-by: Carlos Alexandro Becker <[email protected]>
Signed-off-by: Carlos Alexandro Becker <[email protected]>
|
LGTM. Moving to doc review. re-ping @thaJeztah |
thaJeztah
left a comment
There was a problem hiding this comment.
I don't think this logging driver supports viewing logs through docker logs (correct?) in that case no changes are needed in the reference docs. The documentation in this PR should go into the central docs repository though (see my comment).
Also, we need some changes in the bash and zsh completion scripts; https://github.com/docker/docker/blob/f08a450ad35706900766e7766d30a90d688e410b/contrib/completion/bash/docker#L499-L561 https://github.com/docker/docker/blob/6b997739fe5f4de411ccf30be574ee11a2780018/contrib/completion/zsh/_docker#L217-L251
Let us know if you want to try making those changes, or rather leave that to @albers and @sdurrheimer (who maintain those scripts)
| +++ | ||
| <![end-metadata]--> | ||
|
|
||
| # Logentries logging driver |
There was a problem hiding this comment.
This document was moved to the central docs repository. Given that will be part of 1.13, and should not be published yet, can you remove this file here, and open a PR against the vnext-engine branch in that repository?
|
Seems like I deleted my fork and github lost track of the PR. I tried re-create the fork and the branch from the pull request ref ( Should I open another pr? |
|
@caarlos0 yes, probably not possible to update the PR if you had to create a new branch. Let me know when it's up then we can link to it, and close this one |
|
@thaJeztah I just created a PR for the docs in docker/docs#244 |
|
@thaJeztah #27471. Can I close this one? |
|
Yes, let's close, thanks! |
Add logentries log driver.
I used the logentries documentation and based my change uppon other log drivers implementations.
I'm not sure how to test this alone, this is my first contribution to docker as developer, so, any tips on this will be appreciated (a way to build and test only the logger will be awesome 👍 ).