-
Notifications
You must be signed in to change notification settings - Fork 2k
enhancement(kubernetes_logs source): Allow specification of a maximum line size to be applied after merging instead of just before #22582
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
1013e9f
Add config for maximum allowed line size after merging
oganel 2b3ea0a
Add warns when we drop partial logs for being too big; shift some com…
oganel cd9d607
Add changelog
oganel dd5fad0
Format
oganel 354008c
Increment component_discarded_events_total on violation of max_line_s…
oganel 0d1b806
Update changelog.d/22581_max_merged_line_bytes.feature.md
ganelo 8e0c994
Don't emit expired events that are too big nor ones that don't appear…
oganel cae7b01
Fix another test
oganel bc23d35
Update src/sources/kubernetes_logs/mod.rs
ganelo 62bce6c
Update src/sources/kubernetes_logs/mod.rs
ganelo 4e93bc9
Remove inadvertently added file
oganel f9d7ca8
Include Value rather than Event in error struct
oganel 6e58258
Rename field in bucket struct
oganel e551a4c
Move max_merged_line_bytes from being a param to being a field on the…
oganel 7bac39a
Make new config field optional, defaulting to old behavior
oganel 4975ebe
Format
oganel af11a17
Merge remote-tracking branch 'origin/master' into og/max_merged_line_…
pront 7ca79d0
Appease check-events
oganel d82e92c
Merge branch 'og/max_merged_line_bytes' of https://github.com/ganelo/…
oganel b51c3df
Merge remote-tracking branch 'origin/master' into og/max_merged_line_…
pront c9919b4
docs regen
pront 6062927
Tweak wording of doc; emit only first 1k bytes of dropped lines in error
oganel 3b8edf6
Rename fields for clarity
oganel 08b7292
Per PR feedback: copy just the initial 1000 bytes rather than cloning…
oganel bfe4a25
Merge branch 'master' into og/max_merged_line_bytes
oganel 335f6e2
Allow spelling of already-merged changelog filename
oganel e4efae0
Don't try to include more characters than there actually are in the s…
oganel 36b4c77
Don't just get enough capacity, make sure length matches too
oganel ffcfcc3
Formatting
oganel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -174,7 +174,8 @@ | |
| efgh | ||
| Elhage | ||
| emerg | ||
| Enableable | ||
| enableable | ||
| endianess | ||
| endler | ||
| eni | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| The `kubernetes_logs` source now includes a new `max_merged_line_bytes` configuration option. This setting enables users to cap the size of log lines after they’ve been combined using `auto_partial_merge`. Previously, the `max_line_bytes` field only restricted line sizes *before* merging, leaving no practical way to limit the length of merged lines—unless you set a size so tiny that it prevented merging altogether by stopping short of the continuation character. This new option gives you better control over merged line sizes. | ||
|
|
||
| authors: ganelo |
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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 am not very familiar with this code. I wonder why this
warn!was moved only to be emitted later.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.
This was part of plumbing through the actual contents that were being dropped so they could be included in the error.