-
Notifications
You must be signed in to change notification settings - Fork 207
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 JSON #831
Comments
I want to request supports for below two special use cases in the
For example, here is my original json file:
The expected result after processed is to output multiple records (lines) to destinations (e.g. multiple docs to OpenSearch index). Simpliar to the tool
For example, the raw file is not really a valid json file, however, each line is a valid json file.
The expected result after processed is to output each records (lines) to destinations (e.g. multiple docs to OpenSearch index). |
I can work on this, and would like to request feedback on another feature for the It may be useful to support using a JSON pointer to select the part of the JSON string that will be parsed. A user could add a This setting would be optional, and if the
Is processed into If the inner key conflicts with another field on the Event, the absolute path of the inner key will be placed in the Alternatively, the JSON pointer could be specified in the source (like |
Is your feature request related to a problem? Please describe.
Data Prepper events may have JSON values inside Event fields. Data Prepper should be able to parse these JSON strings and create fields directly in the Event from the JSON.
Describe the solution you'd like
Provide a JSON parsing processor -
parse_json
.It should be able to parse a JSON string from a field and set the values in the Event object. This processor will automatically support nesting.
Example
Given the following configuration:
Given this input event:
The input event is changed to:
Example with Nesting
Given this input event:
The input event is changed to:
Configurations
source
- the field with JSONtarget
- the field to set the values in; by default this is the root objectThe text was updated successfully, but these errors were encountered: