Remove Fields
CAUTION
This transform has been deprecated in favor of the remap
transform, which enables you to use Vector Remap Language (VRL for short) to
create transform logic of any degree of complexity. The examples below show how you can use VRL to
replace this transform's functionality.
del(.level)
Configuration Options
Required Options
inputs(required)
A list of upstream source or transform
IDs. Wildcards (*
) are supported.
See configuration for more info.
Type | Syntax | Default | Example |
---|---|---|---|
array | literal | ["my-source-or-transform-id","prefix-*"] |
fields(required)
The log field names to drop.
Type | Syntax | Default | Example |
---|---|---|---|
array | literal | ["field1","field2","parent.child"] |
type(required)
The component type. This is a required field for all components and tells Vector which component to use.
Type | Syntax | Default | Example |
---|---|---|---|
string | literal | ["remove_fields"] |
Advanced Options
drop_empty(optional)
If set to true
, after removing fields, remove any parent objects that are now empty.
Type | Syntax | Default | Example |
---|---|---|---|
bool |
How it Works
State
This component is stateless, meaning its behavior is consistent across each input.