Remove Fields Transform

The Vector remove_fields transform shapes logs

Configuration

[transforms.my_transform_id]
type = "remove_fields" # required
inputs = ["my-source-or-transform-id"] # required
fields = ["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
  • commonrequired[string]

    fields

    The log field names to drop.

    • View examples

Output

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 error

    • instance - 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.

How It Works