Key Value
Key Value (key-value)
Parse key-value pairs, like “k1=v1,k2=v2,…”.
Transform json
Minimal example
actions: - key-value: {}JSON
{ "actions": [ { "key-value": {} } ]}Contents
General
General
| Field | Type | Required | Description |
|---|---|---|---|
description | string | describe this step. | |
condition | lua-expression (string) | Only run this action if the specified condition is met. Examples: 2 * count() |
Input
Input
| Field | Type | Required | Description |
|---|---|---|---|
input-field | field (string) | Field containing text to parse as key-value pairs. Examples: data_field |
Output
Output
| Field | Type | Required | Description |
|---|---|---|---|
remove ✓ | boolean (bool) | Remove the field containing the value. Default: false | |
autoconvert ✓ | boolean (bool) | Convert values if possible. Default: false | |
multiple | Multiple | If there are multiple k-v pairs with the same key, choose which one to use E.g. “a=1,b=2,b=3’. Allowed values: first, last, array |
Parsing
Parsing
| Field | Type | Required | Description |
|---|---|---|---|
delim | string | The delimiter between pairs, defaults to comma. | |
key-value-delim | string | The delimiter between the key and the value, default equals. Default: = |
Warnings
Warnings
| Field | Type | Required | Description |
|---|---|---|---|
suppress-warnings ✓ | boolean (bool) | Suppress warnings generated by this action. Default: false |
Schema
Multiple Options
| Value | Name | Description |
|---|---|---|
first | first | First |
last | last | Last |
array | array | Array |