PostHog Says Its Dashboards Stayed Green While a Database Bug Deleted Stored Log Data

PostHog's post-mortem says a bug in its database software deleted log data held in cloud storage for its Logs product while its dashboards stayed green. It says no automated alarm fired, and that engineers found the loss after a node crashed and failed to start up.

On February 19, 2026, PostHog lost stored data in its Logs product. Its post-mortem, dated February 20, calls it a major incident. The loss covered data collected more than 3 days earlier in the company's US region. Only the Logs product was affected, PostHog says, and all its other data is intact.

The post-mortem says the deleting went on for hours in the background. No automated alarm was triggered in that time, it says. The system remained "green" on the company's dashboards until a node restarted. Parts of the post-mortem follow, not the whole.

Illustration

What Happened

PostHog keeps the data for Logs in a database cluster of its own, apart from its main one. After 24 hours, the post-mortem says, data parts are automatically uploaded to a cloud storage service. The Logs database is replicated, with two replicas.

All times in the timeline are in UTC. At 10:54 on February 19 a routine mutation was run to materialize an index. It finished at 11:02. That triggered a bug in a replication feature of the database software, the timeline says. The bug caused one of the replicas to wrongly believe that all the data parts in the database were no longer referenced.

The post-mortem's summary says the database unexpectedly attempted to delete almost all of the data parts in the storage service. The timeline puts the deleting between 11:02 and 19:40.

At 19:40 one of the nodes in the cluster crashed and restarted. It failed to start up, the timeline says, because of the large volume of missing data it could not find. Engineers investigated. After some checks they discovered that the vast majority of the data backed by the storage service was missing.

At 21:45, the timeline says, it was determined that the data was "most likely unrecoverable," and disaster recovery procedures started. The company decided to cut over to a new table and restore data from another system, where it says it has 3 days of retention. The backfill completed at 12:21 on February 20. Having 3 days of retention there, the post-mortem says, saved the company from total data loss for recent activity.

Lack of Detection

PostHog says it lacked specific monitoring for the integrity of "cold" data held in the storage service. Its alerts, it says, are optimized for ingestion lag, query latency and error rates on active queries.

Users rarely query logs older than 24 hours, the post-mortem says. The deletion happened silently in the background, without throwing application-level errors. Because of both, it says, the system remained "green" on its dashboards until the node restart forced a consistency check.

The timeline says no automated alarms were triggered, as the volume of query errors was relatively low. It notes that data is only moved to the storage service after 24 hours, and that the vast majority of queries are for recent data.

Among the things that went poorly, the post-mortem lists a silent failure. The system deleted petabytes of data over an 8-hour window, it says, without a single alarm firing. PostHog says it was blind to the deletion of historical data because it monitors only the health of incoming data and hot data.

The alerts watched incoming data and the data users query. The deleting happened in data that users rarely query. A green dashboard answers only for what it measures.

An Experimental Setting Left in Production

The post-mortem names the replication feature: "Zero Copy Replication." PostHog calls it an experimental feature that the database's maker does not recommend in production. It is not recommended, PostHog says, for exactly this reason. A bug that should have caused a single replica to be deleted instead deleted the data everywhere.

The feature uses a shared storage medium for multiple replicas, the post-mortem says. When the logic on one node failed and issued delete commands, the files were removed for the entire cluster immediately. There was no redundancy layer between the database application logic and the storage layer, PostHog says.

The decision to use the feature was taken extremely early, the post-mortem says, when Logs was an experimental internal-only tool. PostHog says the decision should have been revisited once Logs was released to external users. It wasn't. Because it had no issues at all during several months of internal usage, the company says, the settings made at the beginning were largely unvisited and unchanged.

Lessons Learned

The backup strategy is on the post-mortem's list of what went poorly. Relying solely on the database replication for data durability, when using shared storage, created a single point of failure, PostHog says. It did not have versioning enabled on the storage bucket. That would have allowed it to "undelete" the files, the post-mortem says.

Under its key takeaways, the post-mortem says to disable Zero Copy Replication on all clusters immediately. It says to conduct "a full audit" of the Logs database configuration and to ensure that no experimental features are used in production.

It also says to enable versioning on the underlying storage buckets. That ensures, it says, that even if the database application issues a destructive command because of a bug, the underlying data objects can be recovered.

Before a product is made generally available, PostHog says, it spot checks configurations and its data integrity strategies. The aim it gives is to find and correct potential single points of failure.

Sources

  1. PostHog. Logs data loss (post-mortem). 20 February 2026 (the page prints 'Feb 20, 2026' under its title; the incident of February 19). incident report