Getting started

Logs

Search and analyze your application logs with PostHog and OpenTelemetry.

Get started!

Overview

Logs is in beta

Logs is currently in early beta. While in beta, logs is free to use.

We're always looking for feedback to improve logs, please reach out to us directly in app.

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.

PostHog logs search interface
Search and analyze your logs in PostHog

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:

  1. Use standard OpenTelemetry logging APIs in your application
  2. Include your project token in the Authorization header or as a query parameter
  3. Configure your OpenTelemetry client to send logs to PostHog's HTTP endpoint
  4. Search and analyze your logs in the PostHog interface

Pricing

Logs is currently in early beta. While in beta, Logs is free to use.

After the beta, pricing will be based on GB/ingest. We will offer 30 days standard retention. You'll get 50GB ingest free each month, with discounts as your usage grows.

Next steps

Community questions

Questions about this page? or post a community question.