Section 3 · Send logs

Sending logs via OTLP to Grafana Cloud

Estimated time: 1 min

OTLP for logs

OpenTelemetry Protocol (OTLP) is the standard way to send logs when you’re using OpenTelemetry, through its OTLP endpoint, which routes structured logs into Grafana Cloud Logs. Teams already using the OpenTelemetry Collector or SDKs use it for a unified pipeline across logs, metrics, and traces.

If you’re setting up a collector for the first time, Grafana Alloy is Grafana’s OpenTelemetry Collector distribution and can export OTLP to Grafana Cloud. This journey covers teams already running a standard OpenTelemetry Collector.

OTLP logs flow

Considerations

  • One protocol for logs, metrics, and traces, for a unified telemetry pipeline.
  • Structured logs keep their attributes when stored in Grafana Cloud Logs.
  • Requires an OTLP-compatible source (an OpenTelemetry Collector or SDK).
  • Takes more setup than the HTTP API.

Documentation