Filter By Severity
Overview
The Filter By Severity processor filters logs based on their severity level. It allows you to select a minimum OTLP severity level for logs, and optionally use an OTTL (OpenTelemetry Transformation Language) condition to further refine the filtering.
Supported types: Logs
Configuration
| Parameter | Type | Required | Description |
|---|---|---|---|
| min_severity_number | string | Yes | Select the minimum OTLP severity level for logs. All logs lower than this are dropped. Supported values: DEBUG(5) INFO(9) WARN(13) ERROR(17) FATAL(21) TRACE(1) |
| ottl_expression | string | No | Optional. The OTTL expression to evaluate alongside severity for filtering logs |
Rules
When you click Add Filter, the following rule options appear.
Attributes
| Parameter | Type | Description |
|---|---|---|
| Attribute Key | string | The attribute key to evaluate. Supported values: attribute; resource; log (fields: body; severity_number; severity_text); span; metric; datapoint |
| Operator | string | The operator to use for comparison. Supported values: equals; not equals; starts with; ends with; contains; regex; ==; !=; <; >; >=; <=; is boolean; is integer; is double; is map; is string; exists; not exists |
| Value | string | The value to compare against |
Example Configuration
{
"min_severity_number": "9", // required, default: "9"
"ottl_expression": "", // default: none
}