Skip to main content

Loki Receiver

Status Available in: contrib Maintainers: @mar4uk Source: opentelemetry-collector-contrib

Supported Telemetry

Logs

Overview

Getting Started

The settings are:
  • endpoint (required, default = localhost:3500 for HTTP protocol, localhost:3600 gRPC protocol): host:port to which the receiver is going to receive data. See our security best practices doc to understand how to set the endpoint in different environments.
  • use_incoming_timestamp (optional, default = false) if set true the timestamp from Loki log entry is used
Example:
receivers:
  loki:
    protocols:
      http:
        endpoint: 0.0.0.0:3500
      grpc:
        endpoint: 0.0.0.0:3600
    use_incoming_timestamp: true

Advanced Configuration

Several helper files are leveraged to provide additional capabilities automatically:

Configuration

Example Configuration

# The following demonstrates how to enable protocols with defaults.
loki/defaults:
  protocols:
    grpc:
    http:
loki/mixed:
  protocols:
    grpc:
      endpoint: localhost:4600
    http:
      endpoint: localhost:4500
  use_incoming_timestamp: true
loki/empty:
loki/extra_keys:
  foo:

Last generated: 2026-04-13