Skip to main content

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​

ParameterTypeRequiredDescription
min_severity_numberstringYesSelect 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_expressionstringNoOptional. The OTTL expression to evaluate alongside severity for filtering logs

Rules​

When you click Add Filter, the following rule options appear.

Attributes​

ParameterTypeDescription
Attribute KeystringThe attribute key to evaluate. Supported values: attribute; resource; log (fields: body; severity_number; severity_text); span; metric; datapoint
OperatorstringThe 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
ValuestringThe value to compare against

Example Configuration​

{
"min_severity_number": "9", // required, default: "9"
"ottl_expression": "", // default: none
}