← Back

Log retention

New

You can now choose how long your servers keep their logs. Under Log retention in your cluster's Settings, pick 1, 3, 7, 14, 30 or 90 days.

Log retention in a cluster's Servers settings

It covers your app's output, Caddy's access logs, your app's own log files and the system journal. When you save the setting, Hatchbox applies it to every server in the cluster and deletes older journal entries right away. Rotated log files older than the limit are deleted at the next daily rotation.

The default is still no limit, and logs are still capped by size as before. The setting is useful if your privacy policy or a compliance requirement limits how long you can keep logs, since they can include IP addresses and other personal data.