Transform OTTL
Overview
The Transform OTTL processor applies OTTL statements to log records. It allows conditional transformations using one or more statement blocks and a configurable error handling mode.
Supported types: Logs
Configuration
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| error_mode | string | ignore | Yes | Controls how the processor handles errors while evaluating OTTL statements. Supported Values : ignore propagate |
ignoreContinues processing even when a statement fails.propagatePropagates the error and stops processing for the current record.
Log Statements
Each item in log_statements defines a block of OTTL statements that are evaluated for logs.
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| conditions | array[string] | none | No | Optional OTTL conditions that must be true before the statements are applied. |
| statements | array[string] | none | Yes | OTTL statements to execute when the conditions match. |
Note: Conditions are optional. If no conditions are provided, the statements are always executed.
Example Configuration
{
"error_mode": "ignore", // required, default: "ignore"
"log_statements": [
{
"conditions": [], // default: none
"statements": [], // required, default: none
},
],
}