Overview
PostHog logs is a powerful logging solution that works with the OpenTelemetry Protocol (OTLP). You don't need any vendor-specific SDKs - just use standard OpenTelemetry libraries to send logs to PostHog. You can migrate to PostHog logs by configuring your existing OpenTelemetry client to send logs to PostHog's HTTP endpoint using your project token.


Why use PostHog logs?
- OpenTelemetry-compatible: Use standard OpenTelemetry SDKs - no PostHog packages required. Works with any compatible client.
- Integrated analytics: Correlate logs with your PostHog events and user data for deeper insights.
- Cost-effective: No vendor lock-in, works with your existing setup.
How it works
PostHog logs acts as a generic OTLP receiver that happens to be built by PostHog. The process is simple:
- Use standard OpenTelemetry logging APIs in your application
- Include your project token in the Authorization header or as a query parameter
- Configure your OpenTelemetry client to send logs to PostHog's HTTP endpoint
- Search and analyze your logs in the PostHog interface
Pricing
Every month, the first 50GB is free. After that, pricing is $0.25 per GB up to 300GB ingested, then $0.15/GB for 300GB+. Have a look at our pricing page for more details.
