Skip to main content

metadata

DEPRECATED

This component is deprecated and will be removed in the next major version release. Please consider moving onto alternative components.

# Common config fields, showing default values
label: ""
metadata:
operator: set
key: example
value: ${!hostname()}

Fields​

operator​

The operator to apply to messages.

Type: string
Default: "set"
Options: set, delete, delete_all, delete_prefix.

key​

The metadata key to target with the chosen operator. This field supports interpolation functions.

Type: string
Default: "example"

value​

The metadata value to use with the chosen operator. This field supports interpolation functions.

Type: string
Default: "${!hostname()}"

parts​

An optional array of message indexes of a batch that the processor should apply to. If left empty all messages are processed. This field is only applicable when batching messages at the input level.

Indexes can be negative, and if so the part will be selected from the end counting backwards starting from -1.

Type: array
Default: []

Alternatives​

All functionality of this processor has been superseded by the bloblang processor.