Delete Fields
Description
The Delete Fields processor can be used to remove attributes, resource attributes, log record body keys from telemetry in the pipeline.
warning
This processor has been deprecated and replaced with a new Delete Fields processor that supports additional functionality and improved layout. While it will continue to function, it will no longer receive any enhancements and you should migrate to the new processor. For more information about the new processor, see here.
Supported Types
Metrics | Logs | Traces |
---|---|---|
✓ | ✓ | ✓ |
Configuration Table
Parameter | Type | Default | Description |
---|---|---|---|
telemetry_types | telemetrySelector | ["Logs", "Metrics", "Traces"] | The list of telemetry types the processor will act on. |
log_condition | string | true | An OTTL condition that must evaluate to true to apply this processor. By default, the processor applies to all logs. |
log_resource_attributes | strings | [] | One or more resource attribute names to remove from logs. |
log_attributes | strings | [] | One or more attribute names to remove from logs. |
log_body_keys | strings | [] | One or more body key names to remove from log records. |
datapoint_condition | string | true | An OTTL condition that must evaluate to true to apply this processor to metrics. By default, the processor applies to all datapoints. |
metric_resource_attributes | strings | [] | One or more resource attribute names to remove from metrics. |
metric_attributes | strings | [] | One or more attribute names to remove from datapoints. |
enable_traces | bool | true | If true, this processor will operate on traces. |
span_condition | string | true | An OTTL condition that must evaluate to true to apply this processor. By default, the processor applies to all spans. |
trace_resource_attributes | strings | [] | One or more resource attribute names to remove from traces. |
trace_attributes | strings | [] | One or more attribute names to remove from spans. |
Example Configuration
This example configuration removes the "host.id" resource attribute, the "log.file.name" attribute, and the "spid" body field from any log record.
Web Interface
Standalone Processor
Configuration with Embedded Processor