-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
feat: add ANSI color removal for tail input plugin #10880
Conversation
fa101ee
to
8fa725d
Compare
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.
Thank you so much for this pr! Just a few minor comments :)
plugins/inputs/tail/README.md
Outdated
## Remove ANSI colors | ||
# remove_colors = false | ||
|
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.
We try to avoid booleans in the config as it creates some stumbling blocks down the road if we need to expand on it. Maybe something like remove = ["colors"]
?
6353792
to
47fd418
Compare
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.
lgtm! This pr will need to be approved by one more team member before it can be merged
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.
Thanks!
Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
@reimda Could you merge the PR, please? |
I was waiting for CI to complete. Maybe I should have waited for it to complete before approving :) |
Required for all PRs:
Adds an ability to read a colorized log files for the input tail plugin