PostHog / posthog

🦔 PostHog provides open-source web & product analytics, session recording, feature flagging and A/B testing that you can self-host. Get started - free.
https://posthog.com
Other
21.95k stars 1.32k forks source link

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

Open DishantPal opened 1 year ago

DishantPal commented 1 year 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 1 year 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.