Skip to main content

Otlpjson Connector

Status Available in: contrib, k8s Maintainers: @ChrsMark Source: opentelemetry-collector-contrib

Overview

Allows to extract otlpjson data from incoming Logs and specifically the Body field. The data is written in Protobuf JSON encoding using OpenTelemetry protocol.

Configuration

Configuration Example:

receivers:
  file_log:
    include:
      - /var/log/foo.log

exporters:
  debug:

connectors:
  otlpjson:

service:
  pipelines:
    logs/raw:
      receivers: [file_log]
      exporters: [otlpjson]
    metrics/otlp:
      receivers: [otlpjson]
      exporters: [debug]
    logs/otlp:
      receivers: [otlpjson]
      exporters: [debug]
    traces/otlp:
      receivers: [otlpjson]
      exporters: [debug]

Configuration

Example Configuration


Last generated: 2026-04-13