ANSI Stripper Transform
The Vector ansi_stripper transform accepts log events and allows you to strips ANSI characters from the specified field.
Configuration
vector.toml
[transforms.my_transform_id]# REQUIREDtype = "ansi_stripper" # example, must be: "ansi_stripper"inputs = ["my-source-id"] # example# OPTIONALfield = "message" # default
Options
commonstringoptional
field
The target field to strip ANSI characters 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.