The remove
operator removes a field from a record.
Field | Default | Description |
---|---|---|
id |
remove |
A unique identifier for the operator. |
output |
Next in pipeline | The connected operator(s) that will receive all outbound entries. |
field |
required | The field to remove. if 'attributes' or 'resource' is specified, all fields of that type will be removed. |
on_error |
send |
The behavior of the operator if it encounters an error. See on_error. |
if |
An expression that, when set, will be evaluated to determine whether this operator should be used for the given entry. This allows you to do easy conditional parsing without branching logic with routers. |
Remove a value from the body
- type: remove
field: body.key1
Input Entry | Output Entry |
{
"resource": { },
"attributes": { },
"body": {
"key1": "val1",
}
} |
{
"resource": { },
"attributes": { },
"body": { }
} |
Remove an object from the body
- type: remove
field: body.object
Input Entry | Output Entry |
{
"resource": { },
"attributes": { },
"body": {
"object": {
"nestedkey": "nestedval"
},
"key": "val"
},
} |
{
"resource": { },
"attributes": { },
"body": {
"key": "val"
}
} |
Remove a value from attributes
- type: remove
field: attributes.otherkey
Input Entry | Output Entry |
{
"resource": { },
"attributes": {
"otherkey": "val"
},
"body": {
"key": "val"
},
} |
{
"resource": { },
"attributes": { },
"body": {
"key": "val"
}
} |
Remove a value from resource
- type: remove
field: resource.otherkey
Input Entry | Output Entry |
{
"resource": {
"otherkey": "val"
},
"attributes": { },
"body": {
"key": "val"
},
} |
{
"resource": { },
"attributes": { },
"body": {
"key": "val"
}
} |
Remove all resource fields
- type: remove
field: resource
Input Entry | Output Entry |
{
"resource": {
"key1.0": "val",
"key2.0": "val"
},
"attributes": { },
"body": {
"key": "val"
},
} |
{
"resource": { },
"attributes": { },
"body": {
"key": "val"
}
} |
Remove all attributes
- type: remove
field: attributes
Input Entry | Output Entry |
{
"resource": { },
"attributes": {
"key1.0": "val",
"key2.0": "val"
},
"body": {
"key": "val"
},
} |
{
"resource": { },
"attributes": { },
"body": {
"key": "val"
}
} |