Skip to content

Key Value

Parse key-value pairs, like “k1=v1,k2=v2,….”.

Transform json

actions:
- key-value: {}
JSON
{
"actions": [
{
"key-value": {}
}
]
}

A ✓ marks a field that accepts a context variable such as {{ VARIABLE }}.

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
Field Type Required Description
input-field field (string) Field containing text to parse as key-value pairs.
Examples: data_field
Output
Field Type Required Description
remove boolean (bool) Remove the field containing the value.
Default: false
autoconvert boolean (bool) Convert values into numbers/bools/null when possible.
Default: true
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
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
Field Type Required Description
suppress-warnings boolean (bool) Suppress warnings generated by this action.
Default: false
Value Aliases Name Description
first first
last last
array array