Skip to content
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

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

gmlexx
Copy link
Contributor

@gmlexx gmlexx commented Mar 24, 2022

Required for all PRs:

Adds an ability to read a colorized log files for the input tail plugin

@telegraf-tiger telegraf-tiger bot added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Mar 24, 2022
@gmlexx gmlexx force-pushed the master branch 3 times, most recently from fa101ee to 8fa725d Compare March 24, 2022 10:24
Copy link
Contributor

@MyaLongmire MyaLongmire left a 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 :)

Comment on lines 70 to 73
## Remove ANSI colors
# remove_colors = false

Copy link
Contributor

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"]?

plugins/inputs/tail/tail.go Outdated Show resolved Hide resolved
@gmlexx gmlexx force-pushed the master branch 2 times, most recently from 6353792 to 47fd418 Compare March 24, 2022 13:46
@gmlexx gmlexx requested a review from MyaLongmire March 24, 2022 13:47
Copy link
Contributor

@MyaLongmire MyaLongmire left a 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

@MyaLongmire MyaLongmire added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Mar 24, 2022
plugins/inputs/tail/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@reimda reimda left a comment

Choose a reason for hiding this comment

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

Thanks!

@telegraf-tiger
Copy link
Contributor

@gmlexx
Copy link
Contributor Author

gmlexx commented Mar 30, 2022

@reimda Could you merge the PR, please?

@reimda
Copy link
Contributor

reimda commented Mar 30, 2022

@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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants