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

[processor/transform] Add support for parsing json log bodies #15282

Conversation

lsampras
Copy link

Description:

  • Adding support for getting nested values in json log bodies
  • This allows us to read values that are nested in json and use them for operations

Link to tracking Issue: #14938

Testing:

tested with this config

processors:
    transform:
        logs:
          statements:
            - set(attributes["log_type"], json_body["log_type"])

Documentation:
None

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 19, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: lsampras / name: Sampras Lopes (121082c)

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2022

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

@github-actions github-actions bot added the Stale label Nov 3, 2022
@github-actions
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Nov 18, 2022
@TylerHelmuth
Copy link
Member

@lsampras I missed this PR when it was first created, but I think the concept of "json_body" has potential. Are you still interested in this? If not I can work on it.

@lsampras
Copy link
Author

@TylerHelmuth I had created this initial part to gather feedback, however ended up using it as the solution for my case (have put up a docker image here).

Not sure what is the aimed spec/design for this, I wonder if any of the work done here will be replaced by #9410.

Yeah won't mind if you wanna take over this, (I can also help if needed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants