Loading

Manage data retention

Serverless Technical Preview

Use the Data retention tab on the Manage stream page to set how long your stream retains data and to get insight into your stream's data ingestion and storage size.

Screenshot of the data retention UI

The Data retention page is made up of the following components that can help you determine how long you want your stream to retain data:

  • Retention period: The minimum number of days after which the data is deleted
  • Source: The origin of the data retention policy.
  • Ingestion: Estimated ingestion per day and month calculated based on the size of all data in the stream and divided by the age of the stream. This is an estimate, and the actual ingestion may vary.
  • Total doc count: The total number of documents in the stream.
  • Ingestion Rate: Estimated ingestion rate per time bucket. The bucket interval is dynamic and adjusts based on the selected time range. The ingestion rate is calculated based on the average document size in a stream, multiplied by the number of documents in the bucket. This is an estimate, and the actual ingestion rate may vary.

Select Edit data retention to change how long data for your stream is retained. The Retention period is the minimum number of days after which the data is deleted.

To define a global default retention policy, refer to project settings.