Logs pricing
PostHog Logs comes with a generous free tier and transparent, usage-based pricing. Our large free tier means more than 90% of companies use PostHog for free.
No credit card is required to get started. You can also set billing limits to avoid any surprise charges.
Logs is billed by the number of GB ingested. The price per GB changes based on your usage. You can estimate your costs using our pricing calculator below or by visiting our pricing page for a more detailed breakdown.
GBs/month
$0
We aim to be significantly cheaper than our competitors. Below are tips to reduce your logs costs.
- Log wide events, not play-by-play. One rich event per request (or stage) beats 20 tiny INFO lines. (Logging requests, not code, Building wide events)
- Use structured JSON logs. Easier to query, so you log less "just in case." (Structured logging)
- Get log levels right. Keep INFO for outcomes, push verbose detail to DEBUG (off by default). (Log levels)
- Filter noisy endpoints. Drop or downsample health checks and load balancer pings. (What not to log)
- Sample successful traffic. Keep 100% of errors/slow requests; sample the boring stuff. (Sampling)
- Don't log payloads. Skip request/response bodies and large objects — log metadata instead. (What not to log, Context bloat)
- Avoid duplicate logging across services. Log the outcome once; don't replay the same event everywhere. (What not to log)
- Treat your schema as stable. Renames and type changes create churn (and usually more logs). (Schema evolution)