-
Notifications
You must be signed in to change notification settings - Fork 678
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
Lenz, our internal PaaS logs forwarder #15
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This reverts commit bb37ced.
Thanks for this! This is really great but it's too much for one PR. You have some good ideas, but it would be nice to get them in one at a time so we can pick what is generally useful. If you don't want to spend the time, I understand. Glad my work was helpful! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Not for merge, just introduce this fork and my thoughts.
Our new internal PaaS was based on docker, as we know, docker log method was tooooo simple for managing. Firstly I try to use logspout as solution, however, there three problem I have to face.
For those reasons, I forked logstash and modify a lot, I gave a new name to it, because in our team we follow a rule to name a project.
Firstly, I remove http and websocket interface. Implement lenz to catch HUP signal for reloading route files. Then write a systemctl script to run lenz for each server.
Secondly, I wrote a new streamer to send JSON-formatted events to logstash by udp protocol. However it not enough. I changed route file syntax, remove target type, detective protocol by backends url. In this version, it can send JSON-formatted log to backend by tcp or udp protocol and the normal log to syslog. You can specify multiple backends with different protocols in route file or command line.
In the end, after I made route support multiple backends, I use consistent hash to manage remotes. When events coming, the router will get one backend by docker container name then send events to it If the backend available. In the same time, failover was supported too.
That's all, thank progrium for this convenient project and inspiring me.