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

Support parsing of xml fields in Events #4165

Closed
graytaylor0 opened this issue Feb 20, 2024 · 2 comments · Fixed by #4191
Closed

Support parsing of xml fields in Events #4165

graytaylor0 opened this issue Feb 20, 2024 · 2 comments · Fixed by #4191
Labels
enhancement New feature or request plugin - processor A plugin to manipulate data in the data prepper pipeline.
Milestone

Comments

@graytaylor0
Copy link
Member

graytaylor0 commented Feb 20, 2024

Is your feature request related to a problem? Please describe.
As a user who sends XML in specific fields in Events to my Data Prepper pipelines, I would like to be able to parse the xml

Describe the solution you'd like
A new processor to parse xml.

Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.

@graytaylor0 graytaylor0 added enhancement New feature or request plugin - processor A plugin to manipulate data in the data prepper pipeline. labels Feb 20, 2024
@dlvenable
Copy link
Member

@graytaylor0 , I'm not sure what it means to "decrypt" XML. XML is just a format.

I think we could resolve this by making a new parse_xml processor. It would be similar to the parse_json and parse_ion processors. And it should be able to use the same framework since Jackson has an XML parser.

- parse_xml:
     source: xmlstring
     pointer: /xml

The XML data can be encrypted in one of two ways. 1) The whole XML binary is encrypted; or 2) specific fields are encrypted as base64. Depending on how the data is encrypted, users could either: 1) Decrypt this before the parser. Or 2) decrypt specific fields after parsing it.

@graytaylor0 graytaylor0 changed the title Support deocding of xml encoded fields in Events Support parsing of xml encoded fields in Events Feb 20, 2024
@graytaylor0 graytaylor0 changed the title Support parsing of xml encoded fields in Events Support parsing of xml fields in Events Feb 20, 2024
@cameronattard
Copy link

Related: #4024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugin - processor A plugin to manipulate data in the data prepper pipeline.
Projects
Development

Successfully merging a pull request may close this issue.

3 participants