Getting started with logs

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.

Install and configure logging

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.

Install and configure your logging client to send logs to PostHog:

  • Use the HTTP endpoint: https://us.i.posthog.com/i/v1/logs
  • Authenticate with your project token (same token as events/exceptions)
  • Include the token in the Authorization header or as a ?token= query parameter
  • Use the standard OTLP log format
Configure your logging client

Search and analyze your logs

Once your logs are flowing into PostHog, you can:

  • Search through logs by level, message content, or custom attributes
  • Filter by time ranges to find specific events
  • Correlate logs with events from your PostHog analytics

Navigate to the Logs section in your PostHog dashboard to start exploring your log data.

View your logs in PostHog

Troubleshooting

Common issues you might encounter when setting up logging:

  • Authentication errors - Make sure you're using your correct project token
  • Connection issues - Verify the HTTP endpoint is accessible
  • Log format problems - Ensure you're using the standard OTLP log format
Troubleshoot common issues

Cookbooks and recipes

Coming soon!


Community questions

Was this page useful?

Questions about this page? or post a community question.