Adnan
07/14/2025, 8:57 PMkapa.ai
07/14/2025, 8:57 PMTEMPORAL_HISTORY_RETENTION_IN_DAYS. This variable controls how many days of job history and logs are retained. By lowering its value, Airbyte will automatically clean up older logs and job history, helping to manage disk usage. For example, to retain only 7 days of logs, set the following in your deployment configuration: yaml env_vars: TEMPORAL_HISTORY_RETENTION_IN_DAYS: 7 - For Docker Compose or abctl deployments, add this variable to your environment or values.yaml file as appropriate. - For Helm/Kubernetes deployments, set it under global.env_vars in your `values.yaml`: yaml global: env_vars: TEMPORAL_HISTORY_RETENTION_IN_DAYS: 7 This will instruct Airbyte to automatically delete job history logs older than 7 days. The default is 30 days if not set. Note that this setting primarily affects the Temporal database and related logs, but may not clean up all types of data (such as the main Airbyte Postgres database or MinIO/S3 logs) [Configure TEMPORAL_HISTORY_RETENTION_IN_DAYS in abctl deployment](https://github.com/airbytehq/airbyte/discussions/46355), [Purging of old syncs from Airbyte databases](https://github.com/airbytehq/airbyte/discussions/55233), [Forum: Quickly run out of storage](https://discuss.airbyte.io/t/2417), [Forum: Airbyte log sweeping](https://discuss.airbyte.io/t/2714). If you are using MinIO or S3 for log storage and run into disk issues, you may need to manually delete old log files from the storage backend, as automatic cleanup for these may not be fully implemented yet [S3 Minio Storage Full](https://discuss.airbyte.io/t/1857), [How to clean up airbyte-minio and what's stored in minio?](https://discuss.airbyte.io/t/3101). Summary: Set TEMPORAL_HISTORY_RETENTION_IN_DAYS to a lower value to enable automatic log cleanup in Airbyte v1 and help prevent disk from getting full. For object storage backends, manual cleanup may still be required.Adnan
07/14/2025, 8:58 PMkapa.ai
07/14/2025, 9:02 PMkapa.ai
07/14/2025, 9:02 PMTEMPORAL_HISTORY_RETENTION_IN_DAYS, you need to restart your Airbyte services or containers for the new configuration to take effect. This is standard for environment variable changes in Docker or Kubernetes-based deployments. Restarting ensures that the updated environment variables are loaded by the relevant Airbyte components responsible for log and job history retention. This behavior is also reflected in community discussions, where users mention that changes to environment variables require restarting the containers (e.g., using docker-compose up after modifying .env values) for the changes to apply [Forum: Postgres cdc resync all data after restart containers](https://discuss.airbyte.io/t/2209). So, after updating the retention value, perform a restart of your Airbyte deployment.