PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
21.2k stars 1.26k forks source link

Option to automatically prune session replays that are older then specific date? #18246

Open DishantPal opened 11 months ago

DishantPal commented 11 months ago

So with Session Replays feature enabled, the selfhosted version of the posthog consumes huge amount of space.

So is there any option to delete session replays that are older then one month or week or something?

benjackwhite commented 11 months ago

The bulk of session recordings are stored in S3 (assuming you are running a relatively up-to-date version of posthog) and you can set whatever lifecycle policies you like on those buckets to clear old data (this is what we do for cloud).

We don't have an alternative as technically this is more of an infrastructure configuration than anything else.