-
Notifications
You must be signed in to change notification settings - Fork 507
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
Add parse XML docs #6822
Add parse XML docs #6822
Conversation
Signed-off-by: Liz Snyder <[email protected]>
Signed-off-by: Liz Snyder <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Left a couple of comments.
Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Liz Snyder <[email protected]>
Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Liz Snyder <[email protected]>
Signed-off-by: Liz Snyder <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lizsnyder @kolchfa-aws Just a few comments/changes. Thanks!
|
||
| Option | Required | Type | Description | | ||
| :--- | :--- | :--- | :--- | | ||
| `source` | No | String | The field in the `event` object that is parsed. Default value is `message`. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As written, it's not clear whether the field or the object is parsed.
| `source` | No | String | The field in the `event` object that is parsed. Default value is `message`. | | ||
| `destination` | No | String | The destination field of the parsed XML. Defaults to the root of the `event`. Cannot be `""`, `/`, or any white-space-only string because these are not valid `event` fields. | | ||
| `pointer` | No | String | A JSON pointer to the field to be parsed. The value is null by default, meaning that the entire `source` is parsed. The `pointer` can access JSON array indexes as well. If the JSON pointer is invalid, then the entire `source` data is parsed into the outgoing `event` object. If the key that is pointed to already exists in the `event` object and the `destination` is the root, then the pointer uses the entire path of the key. | | ||
| `parse_when` | No | String | Specifies under what conditions the processor should perform parsing. Default is no condition. Accepts a Data Prepper expression string following the [Data Prepper Expression Syntax]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/expression-syntax/). | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `parse_when` | No | String | Specifies under what conditions the processor should perform parsing. Default is no condition. Accepts a Data Prepper expression string following the [Data Prepper Expression Syntax]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/expression-syntax/). | | |
| `parse_when` | No | String | Specifies under what conditions the processor should perform parsing using the [Data Prepper expression syntax]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/expression-syntax/). Default is no condition. | |
| `source` | No | String | The field in the `event` object that is parsed. Default value is `message`. | | ||
| `destination` | No | String | The destination field of the parsed XML. Defaults to the root of the `event`. Cannot be `""`, `/`, or any white-space-only string because these are not valid `event` fields. | | ||
| `pointer` | No | String | A JSON pointer to the field to be parsed. The value is null by default, meaning that the entire `source` is parsed. The `pointer` can access JSON array indexes as well. If the JSON pointer is invalid, then the entire `source` data is parsed into the outgoing `event` object. If the key that is pointed to already exists in the `event` object and the `destination` is the root, then the pointer uses the entire path of the key. | | ||
| `parse_when` | No | String | Specifies under what conditions the processor should perform parsing. Default is no condition. Accepts a Data Prepper expression string following the [Data Prepper Expression Syntax]({{site.url}}{{site.baseurl}}/data-prepper/pipelines/expression-syntax/). | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Following" can be read as either "after" or "in accordance with" here.
Signed-off-by: Naarcha-AWS <[email protected]>
* Add parse XML docs Signed-off-by: Liz Snyder <[email protected]> * Add parse_when Signed-off-by: Liz Snyder <[email protected]> * Update _data-prepper/pipelines/configuration/processors/parse-xml.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Liz Snyder <[email protected]> * Update _data-prepper/pipelines/configuration/processors/parse-xml.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Liz Snyder <[email protected]> * Tweaks Signed-off-by: Liz Snyder <[email protected]> * Apply suggestions from code review Signed-off-by: Naarcha-AWS <[email protected]> --------- Signed-off-by: Liz Snyder <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> Co-authored-by: kolchfa-aws <[email protected]> Co-authored-by: Naarcha-AWS <[email protected]> (cherry picked from commit 7bbea74) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add parse XML docs * Add parse_when * Update _data-prepper/pipelines/configuration/processors/parse-xml.md * Update _data-prepper/pipelines/configuration/processors/parse-xml.md * Tweaks * Apply suggestions from code review --------- (cherry picked from commit 7bbea74) Signed-off-by: Liz Snyder <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: kolchfa-aws <[email protected]> Co-authored-by: Naarcha-AWS <[email protected]>
Description
Adds docs for parse_xml processor:
Issues Resolved
N/A
Closes #6530
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.