Skip to main content

Allow configuring log retention period

For compliance purposes, we need to retain Run logs for longer than the default 60 days. Currently, there is no easy way to achieve this while keeping the logs easily visible in Spacelift. Allowing the retention period to be configured (could be a paid feature), or allowing logs to be pulled from customer-hosted storage would be nice.

Workaround
Status: ✅ Completed2 comments

Log in to comment and vote

Comments2

  • Plum Pen

    •

    Sep 9, 2025

    Coming from Terraform Cloud, this boggles my mind that these runs aren’t kept in perpetuity.

  • Salmon Sparrow

    •

    Sep 26, 2024

    Retaining run logs for customizable times based on space/stack would allow us to keep prod logs for longer and archive to our own storage while sill managing log volume and cost by deciding that non-prod stack logs might be fine to retain for shorter period.

    It would be great if we could have that logic under our control by e.g. extending the Datadog Observability integration to forward Spacelift logs directly to Datadog where we have a sophisticated retention/archive setup.