Skip to content

Conversation

@achrefbensaad
Copy link

PR Description

Introduced a new stage.json_field component that enables modifying JSON-formatted
log lines by updating or deleting specific fields.

  • Supports update and delete operations
  • Added drop_malformed flag to skip invalid JSON logs
  • update creates the field if it does not exist
  • Values for source are resolved exclusively from the .Extracted map
  • Added documentation and usage examples, including a rename pattern using
    stage.json + stage.json_field

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@achrefbensaad achrefbensaad requested review from a team and clayton-cornell as code owners October 4, 2025 10:25
@achrefbensaad
Copy link
Author

@clayton-cornell I am not sure if I should update converters, can you please advise.

@kalleep
Copy link
Contributor

kalleep commented Oct 6, 2025

Hey, thanks for making a pr but what I would really like to see before we consider this is a proposal and describe what you want too achieve and how it can be done, an example can be found here #4262.

This gives us (Alloy maintainers) a chance to discuss the proposal both internally and externally. Maybe there are other ways to already solve what you are trying to achieve or alternative solutions that could work better

@clayton-cornell
Copy link
Contributor

I am not sure if I should update converters, can you please advise.

I'll wait on the results of the proposal/discussion that Karl asked for before diving into docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants