hi
I'm using Sentry v24.7.1 self-hosted, with ClickHouse as the storage backend for events. I’ve configured the environment variable SENTRY_EVENT_RETENTION_DAYS=7 in my .env file, expecting events to be deleted after 7 days. However, when I check the ClickHouse tables, I still see data that is 30 days old, indicating that the retention setting is not being respected.
these are 4 most size tables inside of clickhouse
Self-Hosted Version
24.7.1
CPU Architecture
x86_64
Docker Version
27.1.1
Docker Compose Version
2.29.1
Steps to Reproduce
hi I'm using Sentry v24.7.1 self-hosted, with ClickHouse as the storage backend for events. I’ve configured the environment variable SENTRY_EVENT_RETENTION_DAYS=7 in my .env file, expecting events to be deleted after 7 days. However, when I check the ClickHouse tables, I still see data that is 30 days old, indicating that the retention setting is not being respected. these are 4 most size tables inside of clickhouse
and these are latest records inside spans_local
all of them have 30 days retention why? i tried to install it new multiple times but it didn't work.
if you could give me solution for cleanup of Clickhouse really appreciated it
Thanks in advance for any guidance!
Expected Result
clickhouse keeps data for 7 days
Actual Result
clickhouse keeps data for 30 days
Event ID
No response