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

String transformations in modify_fields #803

Open
gauee opened this issue Aug 18, 2022 · 2 comments
Open

String transformations in modify_fields #803

gauee opened this issue Aug 18, 2022 · 2 comments
Labels

Comments

@gauee
Copy link

gauee commented Aug 18, 2022

I am looking for an option to modify the record by appending, subtracting or replacing operations.

Case 1: When parsing input data like {"message": "First line#012Second line"} the value can’t be modified to {"message": "First line\nSecond line"} to allow multiline display in LogExplorer.
Case 2: When parsing input data like {"message":"hello world!"} the value can’t be modified to {"message":"yay, hello world!"}

Similar capabilities are achievable with fluentd record_transformer filter.
Existing logging-processor-modify-fields allows to replace value only if their are equal.

@quentinmit quentinmit changed the title Logging does not support transformation of record String transformations in modify_fields May 26, 2023
@quentinmit
Copy link
Member

Today we only support full string replacements, as you found. What interface would you like to see for more complicated string transformations?

Copy link

github-actions bot commented Jan 2, 2025

This issue was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants