ANSI Stripper
CAUTION
This transform has been deprecated in favor of the remap
transform, which enables you to use Vector Remap Language (VRL for short) to
create transform logic of any degree of complexity. The examples below show how you can use VRL to
replace this transform's functionality.
.message = strip_ansi_escape_codes(.message)
Configuration Options
Required Options
inputs(required)
A list of upstream source or transform
IDs. Wildcards (*
) are supported.
See configuration for more info.
Type | Syntax | Default | Example |
---|---|---|---|
array | literal | ["my-source-or-transform-id","prefix-*"] |
type(required)
The component type. This is a required field for all components and tells Vector which component to use.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | ["ansi_stripper"] |
Advanced Options
field(optional)
The target field to strip ANSI escape sequences from.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | message | ["message","parent.child","array[0]"] |
How it Works
State
This component is stateless, meaning its behavior is consistent across each input.