Skip to content

Logproto nul terminated transport#867

Merged
alltilla merged 4 commits intoaxoflow:mainfrom
bazsi:logproto-nul-terminated-transport
Dec 10, 2025
Merged

Logproto nul terminated transport#867
alltilla merged 4 commits intoaxoflow:mainfrom
bazsi:logproto-nul-terminated-transport

Conversation

@bazsi
Copy link
Member

@bazsi bazsi commented Dec 2, 2025

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

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]>
@bazsi bazsi force-pushed the logproto-nul-terminated-transport branch from da64256 to 3d5b317 Compare December 2, 2025 15:34
bazsi added 3 commits December 3, 2025 13:38
…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]>
@bazsi bazsi force-pushed the logproto-nul-terminated-transport branch from e7ce8a0 to 47c88da Compare December 3, 2025 22:54
@OverOrion OverOrion self-requested a review December 10, 2025 07:43
Copy link
Contributor

@OverOrion OverOrion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me, thank you! 🚀

@alltilla
Copy link
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.

@alltilla alltilla merged commit 56fadd2 into axoflow:main Dec 10, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants