Docs cipi.yml Web panel API MCP Guides Compare GitHub Telegram channel
  1. Docs
  2. Backups & monitoring
  3. Log retention

Log retention

GDPR-friendly rotation for app, security and HTTP logs.

Backups & monitoring

Logs rotate and expire automatically, with retention periods chosen for GDPR's data-minimisation principle. No manual cleanup, no disk filling up with years of access logs.

Retention periods#

CategoryLogsKept
ApplicationLaravel, PHP-FPM, workers, deploys, system12 months
SecurityFail2ban, firewall, authentication, Cipi events12 months
HTTPNginx access and error logs (contain IP addresses)90 days

Logs are rotated daily and compressed from the second day. Laravel apps write a single storage/logs/laravel.log (LOG_CHANNEL=single) that follows the same policy. An app that sets LOG_CHANNEL=daily on purpose is pruned by Laravel itself (LOG_DAILY_DAYS).

Access logs hold IP addresses, which are personal data. 90 days is enough for debugging and incident analysis while keeping exposure low; application and security logs stay a year for audit trails.

Where logs are#

LogCommand
Laravelcipi app logs myapp --type=laravel
Nginxcipi app logs myapp --type=nginx
PHP-FPMcipi app logs myapp --type=php
Workerscipi app logs myapp --type=worker
Deployscipi app logs myapp --type=deploy