ANSI Stripper Transform

The Vector ansi_stripper transform accepts and outputs log events allowing you to strips ANSI escape sequences from the specified field.

Configuration

vector.toml
[transforms.my_transform_id]
# REQUIRED
type = "ansi_stripper" # must be: "ansi_stripper"
inputs = ["my-source-id"] # example
# OPTIONAL
field = "message" # default

Options

stringcommonrequired

field

The target field to strip ANSI escape sequences from.

Default: "message"
View examples

How It Works

Environment Variables

Environment variables are supported through all of Vector's configuration. Simply add ${MY_ENV_VAR} in your Vector configuration file and the variable will be replaced before being evaluated.

You can learn more in the Environment Variables section.