Skip to content

Latest commit

 

History

History
94 lines (65 loc) · 3.75 KB

remove_fields.md

File metadata and controls

94 lines (65 loc) · 3.75 KB
description Accepts `log` events and allows you to remove one or more log fields.

remove_fields transform

The remove_fields transform accepts log events and allows you to remove one or more log fields.

Example

{% code-tabs %} {% code-tabs-item title="vector.toml" %}

[transforms.my_transform_id]
  type = "remove_fields" # must be: "remove_fields"
  inputs = ["my-source-id"]
  fields = ["field1", "field2"]

{% endcode-tabs-item %} {% endcode-tabs %}

Options

fields

required type: [string] example: ["field1", "field2"]

The log field names to drop.

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.

Troubleshooting

The best place to start with troubleshooting is to check the Vector logs. This is typically located at /var/log/vector.log, then proceed to follow the Troubleshooting Guide.

If the Troubleshooting Guide does not resolve your issue, please:

  1. Check for any open remove_fields_transform issues.
  2. If encountered a bug, please file a bug report.
  3. If encountered a missing feature, please file a feature request.
  4. If you need help, join our chat/forum community. You can post a question and search previous questions.

Alternatives

Finally, consider the following alternatives:

Resources