-
Notifications
You must be signed in to change notification settings - Fork 8
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
kms: add support for fetching server logs #19
Conversation
c4489ae
to
e53ac81
Compare
This commit adds support for fetching server logs via the `/v1/log` API. The log API returns a stream of log records. Each record is a protobuf (or JSON) encoded message containing the log leve, message, timestamp and other information about a log event. Clients can use a `LogRequest` to filter based on log level, message, IP address etc. Signed-off-by: Andreas Auernhammer <[email protected]>
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.
I guess this Go client is meant for minkms, but I couldn't find any matching protobuf specifications in minkms.
I wonder why we are using custom serialization formats, but that's probably a choice that was made when the server-side was created.
Signed-off-by: Andreas Auernhammer <[email protected]>
The protobuf specification is in Are you referring to the lenght-prefixed protobuf messages?
|
For some context @ramondeklein |
I guess I'm used to specify the specification in the server and let the client reference that one. Agree that you shouldn't specify it twice. Fortunately, Go makes it rather easy to reference code from another repo. Try that with Java or .NET and not reach Git submodule hell... |
This commit adds support for fetching server logs
via the
/v1/log
API.The log API returns a stream of log records. Each
record is a protobuf (or JSON) encoded message
containing the log leve, message, timestamp and
other information about a log event.
Clients can use a
LogRequest
to filter based onlog level, message, IP address etc.