Logproto nul terminated transport#867
Merged
alltilla merged 4 commits intoaxoflow:mainfrom Dec 10, 2025
Merged
Conversation
This new transport will use NUL characters to separate log records instead of the more traditional newline separated format. Here is a sample config: @Version: current log { source { network(port(2000) transport(nul-terminated)); }; destination { stdout(); }; }; This is how you can send a multi-line message as a single log record: $ echo -e "foo\nbar\nbaz\x00" | nc -q0 localhost 2000 Signed-off-by: Balazs Scheidler <[email protected]>
da64256 to
3d5b317
Compare
Signed-off-by: Balazs Scheidler <[email protected]>
Signed-off-by: Balazs Scheidler <[email protected]>
…ailing ones There are crazy line termination sequences, which will bubble into the _front_ of the messages, so remove them too. Signed-off-by: Balazs Scheidler <[email protected]>
e7ce8a0 to
47c88da
Compare
OverOrion
reviewed
Dec 10, 2025
Contributor
OverOrion
left a comment
There was a problem hiding this comment.
Overall looks good to me, thank you! 🚀
alltilla
approved these changes
Dec 10, 2025
Member
|
Talking with @OverOrion IRL, we decided to merge this as is. He will open a PR with his suggestions, and we can merge tat later. |
This file contains hidden or 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
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.
This new transport will use NUL characters to separate log records instead of the more traditional newline separated format.
Here is a sample config:
This is how you can send a multi-line message as a single log record: