Unroll Processor
Description
The Unroll processor converts a JSON object array into individual objects.
Use
This processor is most commonly used for cases when a source sends a set of objects packaged in a single JSON object. This could include logs or metrics.
Configuration
There is one option to configure for this processor.
| Option | Description | Example |
|---|---|---|
| Field | The field containing the JSON object array to unroll. | .foo |
Example
Before
{ 'foo': ['bat', 'baz', 'qux'], 'bar': 1}Unroll Options
| Option | Value |
|---|---|
| Field | .foo |
After
{"bar": 1, "foo": "bat"}{"bar": 1, "foo": "baz"}{"bar": 1, "foo": "qux"}Was this page helpful?