Open mauri870 opened 1 week ago
This pull request does not have a backport label. If this is a bug or security fix, could you label this PR @mauri870? 🙏. For such, you'll need to label your PR with:
To fixup this pull request, you need to add the backport labels for the needed branches, such as:
backport-8./d
is the label to automatically backport to the 8./d
branch. /d
is the digitbackport-8.x
has been added to help with the transition to the new branch 8.x
.
If you don't need it please use backport-skip
label and remove the backport-8.x
label.
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)
Proposed commit message
While investigating an SDH, I noticed that although we add the truncated label to log fields, there is no feedback explaining why the messages were truncated.
This PR adds a log statement to provide insight whenever multiline messages are truncated.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Create a log file with multiline logs whose line count or max bytes exceeds the limit.
Related issues
-
Logs