-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[core.logging] Add RewriteAppender for filtering LogMeta. #91492
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
752bdf1
Add RewriteAppender with a 'meta' rewrite policy.
lukeelmers 71e46ce
Add unit tests.
lukeelmers e1c6402
Filter sensitive headers using rewrite appender.
lukeelmers ae5facc
Update generated docs.
lukeelmers 03a0397
Rename policy.transform to policy.rewrite for consistency with log4j.
lukeelmers 61d4450
Address initial feedback.
lukeelmers 0dc0afc
Switch from appenders.update to appenders.addAppender to align with l…
lukeelmers 44d1440
Fix missed transform > rewrite rename.
lukeelmers 524cc31
Shallow clone http request/response headers.
lukeelmers c72c75b
Test for circular refs between appenders.
lukeelmers 7cbe347
Update README with documentation.
lukeelmers e9b9bcc
Merge branch 'master' into feat/rewrite-appender
kibanamachine 8fb040e
Take Appender inside addAppender
lukeelmers 88397a5
Clean up policy comments
lukeelmers a6632ee
Update snapshots
lukeelmers eabb888
Merge branch 'master' into feat/rewrite-appender
kibanamachine 0516db3
Re-add hardcoded headers filtering to http logs.
lukeelmers c777305
Use fixed timestamp in meta policy tests.
lukeelmers e0f4c58
Clean up documentation.
lukeelmers 11b5512
Prevent mutating array headers.
lukeelmers b46e404
Extract inline types from MetaRewritePolicy.
lukeelmers f6ae2ea
Clean up unknown appender error message.
lukeelmers 353d8e5
Resolve merge conflicts.
lukeelmers dcee4b9
Merge branch 'master' into feat/rewrite-appender
lukeelmers f9f28dd
Remove MetaRewritePolicy 'add' mode.
lukeelmers 3d2a945
Remove default rewrite-appender.
lukeelmers 102d490
Merge branch 'master' into feat/rewrite-appender
kibanamachine aa5d21e
Merge branch 'master' into feat/rewrite-appender
kibanamachine fb23cb1
Fix logging system jest tests.
lukeelmers 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 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 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 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 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 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.
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.
optional: It's good we enforce immutability, but we pay the extra cost when cloning the array. IMO we can assume that no-one mutates the array.