string_split

Splits a string by a delimiter into an array. Generally, using bloblang’s split method is preferred. In some high performance use cases this processor can be faster than the equivalent bloblang if there is no additional logic.

  • Common

  • Advanced

processors:
  label: ""
  string_split:
    delimiter: 

    empty_as_null: false
processors:
  label: ""
  string_split:
    delimiter: 

    emit_bytes: false
    empty_as_null: false

Fields

delimiter

The delimiter to split the string by.

Type: string

Default: ` `

emit_bytes

When true, the output will be bloblang bytes instead of strings.

Type: bool

Default: false

empty_as_null

When true, empty strings resulting from the split are converted to null.

Type: bool

Default: false