Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
Signed-off-by: Haidong <whaidong@amazon.com>
  • Loading branch information
Haidong committed Jun 29, 2023
1 parent 9f94e40 commit ba56b21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion data-prepper-plugins/mutate-event-processors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,11 @@ and the type conversion processor will change it to the following output, where
{"message": "10.10.10.10 [19/Feb/2015:15:50:36 -0500] 200", "clientip":"10.10.10.10", "timestamp": "19/Feb/2015:15:50:36 -0500", "response_status": 200}
```
### Configuration
* `key` - (required) - keys whose value needs to be converted to a different type
* `key` - keys whose value needs to be converted to a different type. Required if `keys` option is not defined.
* `keys` - list of keys whose value needs to be converted to a different type. Required if `key` option is not defined.
* `type` - target type for the value of the key. Possible values are `integer`, `double`, `string`, and `boolean`. Default is `integer`.
* `null_values` - treat any value in the null_values list as null.
* Example: `null_values` is `["-"]` and `key` is `key1`. `{"key1": "-", "key2": "value2"}` will parse into `{"key2": "value2"}`

## List-to-map Processor
A processor that converts a list of objects from an event, where each object has a key field, to a map of keys to objects.
Expand Down

0 comments on commit ba56b21

Please sign in to comment.