Skip to content

Sending Logs

Learn how to send logs to Kopai for centralized log aggregation.

Kopai accepts logs via the OpenTelemetry Protocol (OTLP). Logs can be correlated with traces for full observability.

ProtocolEndpoint
HTTPhttps://otlp.kopai.app/v1/logs
gRPCotlp.kopai.app:443

Configure your OpenTelemetry SDK to export logs:

Terminal window
export OTEL_EXPORTER_OTLP_ENDPOINT="https://otlp.kopai.app"
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer YOUR_TOKEN"
export OTEL_SERVICE_NAME="your-service-name"

Kopai supports standard log severity levels:

  • TRACE
  • DEBUG
  • INFO
  • WARN
  • ERROR
  • FATAL

Access your logs in the Kopai dashboard under Logs.