Skip to content

in_tcp: do not put the whole received data into logs - #5592

Merged
Watson1978 merged 1 commit into
fluent:masterfrom
kenhys:suppress-in-tcp-logging
Nov 5, 2026
Merged

Watson1978 merged 1 commit into
fluent:masterfrom
kenhys:suppress-in-tcp-logging

Conversation

@kenhys

@kenhys kenhys commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:
Fixes #

What this PR does / why we need it:

Before: when a message does not match the parser, the whole message is written into one warn log, so a 32MiB message makes a 32MiB log line.

After: when a message longer than 16KiB does not match the parser, only the first 16KiB and the size are logged.

16KiB is larger than normal log lines, such as lines split by Docker or Kubernetes, so the warn log does not change for them.

Docs Changes:

N/A

Release Note:

in_tcp: do not put the whole received data into logs

Before: when a message does not match the parser, the whole message is
written into one warn log, so a 32MiB message makes a 32MiB log line.

After: when a message longer than 16KiB does not match the parser, only
the first 16KiB and the size are logged.

16KiB is larger than normal log lines, such as lines split by Docker or
Kubernetes, so the warn log does not change for them.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
@kenhys
kenhys requested a review from Watson1978 November 5, 2026 09:03

@Watson1978 Watson1978 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks!

@Watson1978 Watson1978 added this to the v1.21.0 milestone Nov 5, 2026
@Watson1978 Watson1978 added the backport to v1.19 We will backport this fix to the LTS branch label Nov 5, 2026
@Watson1978
Watson1978 merged commit af25743 into fluent:master Nov 5, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport to v1.19 We will backport this fix to the LTS branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants