Remove Fields Transform
The Vector remove_fields
transform
removes one or more log fields.
Configuration
- Common
- Advanced
- vector.toml
- vector.yaml
- vector.json
[transforms.my_transform_id]type = "remove_fields" # requiredinputs = ["my-source-or-transform-id"] # requiredfields = ["field1", "field2", "parent.child"] # required
- optionalbool
drop_empty
If set to
true
, after removing fields, remove any parent objects that are now empty.- Default:
false
- View examples
- Default:
- required[string]
fields
The log field names to drop.
- View examples
Telemetry
This component provides the following metrics that can be retrieved through
the internal_metrics
source. See the
metrics section in the
monitoring page for more info.
- counter
processed_events_total
The total number of events processed by this component. This metric includes the following tags:
component_kind
- The Vector component kind.component_name
- The Vector component ID.component_type
- The Vector component type.file
- The file that produced the errorinstance
- The Vector instance identified by host and port.job
- The name of the job producing Vector metrics.
- counter
processed_bytes_total
The total number of bytes processed by the component. This metric includes the following tags:
component_kind
- The Vector component kind.component_name
- The Vector component ID.component_type
- The Vector component type.instance
- The Vector instance identified by host and port.job
- The name of the job producing Vector metrics.