Skip to main content

Logstransform Processor

Status Maintainers: @dehaansa Source: opentelemetry-collector-contrib

Supported Telemetry

Logs

Overview

NOTE - This processor is experimental, with the intention that its functionality will be reimplemented in the transform processor in the future. For this reason, the processor is not included in the contrib distribution. The logs transform processor can be used to apply log operators to logs coming from any receiver. Please refer to config.go for the config spec. Examples:
processors:
  logstransform:
    operators:
      - type: regex_parser
        regex: '^(?P<time>\d{4}-\d{2}-\d{2}) (?P<sev>[A-Z]*) (?P<msg>.*)$'
        timestamp:
          parse_from: body.time
          layout: "%Y-%m-%d"
        severity:
          parse_from: body.sev
Refer to config.yaml for detailed examples on using the processor.

Configuration

Example Configuration

operators:
  - type: regex_parser
    regex: '^(?P<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}) (?P<sev>[A-Z]*) (?P<msg>.*)$'
    timestamp:
      parse_from: attributes.time
      layout: '%Y-%m-%d %H:%M:%S'
    severity:
      parse_from: attributes.sev

Last generated: 2026-04-13