Sending Logs
Sending Logs
Section titled “Sending Logs”Learn how to send logs to Kopai for centralized log aggregation.
Overview
Section titled “Overview”Kopai accepts logs via the OpenTelemetry Protocol (OTLP). Logs can be correlated with traces for full observability.
Endpoints
Section titled “Endpoints”| Protocol | Endpoint |
|---|---|
| HTTP | https://otlp.kopai.app/v1/logs |
| gRPC | otlp.kopai.app:443 |
Configuration
Section titled “Configuration”Configure your OpenTelemetry SDK to export logs:
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"Log Levels
Section titled “Log Levels”Kopai supports standard log severity levels:
- TRACE
- DEBUG
- INFO
- WARN
- ERROR
- FATAL
Viewing Logs
Section titled “Viewing Logs”Access your logs in the Kopai dashboard under Logs.