Skip to main content

Otlpjson Connector

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

Overview

Deprecation Notice: The component type has been renamed from otlpjson to otlp_json to follow the OpenTelemetry snake_case naming convention. The old name otlpjson still works but is deprecated and will be removed in a future release. Please update your configuration to use otlp_json.
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:
  # Deprecated (still works):
  # otlpjson:
  # New name:
  otlp_json:

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-06-01