Docs

Log retention (GDPR)

How long NovaPanel keeps logs that contain IP addresses, and how to set one period for all of them for your privacy policy.

Server logs record the IP address of every visitor and every sign-in. Under the GDPR an IP address is personal data, so your privacy policy has to say how long you keep these logs, and you have to keep them no longer than that. The GDPR does not fix a number of days; it asks you to keep them only as long as you need them. Hosting providers commonly choose somewhere between 14 and 90 days.

From NovaPanel 1.9.9 one setting controls all of these logs. This page is a technical description of what NovaPanel stores, not legal advice.

What NovaPanel logs, and for how long

LogWhat it containsDefault period
Website access and error logsVisitor IP address, requested URL, browser14 days
Panel logsPanel activity, IP addresses14 days
Audit logActions taken in the panel, with the IP address90 days
Login historySign-in attempts: email address, IP address, browser90 days
Firewall (WAF) eventsBlocked requests: IP address, URL30 days
System journalSSH, fail2ban and service logs, with IP addressesNo time limit (capped by size)

The system journal is the operating system's own log. Ubuntu limits it by disk space, not by age, so with the defaults it has no fixed period. Setting a retention period below gives it one.

Set one period for every log

  1. Go to Admin → Settings and find the Log retention card. It needs a full admin account.
  2. Choose Keep every log for, enter a number of days from 1 to 365, and click Save retention.
  3. The table on the card updates to show the period now in force for each log. Copy it into your privacy policy.

The period applies straight away to the log file rotation and the system journal. Older entries in the audit log, login history and firewall events are removed within the hour. Website and panel log files rotate daily, so the oldest file is removed at the next daily rotation.

To go back to the defaults, choose Default periods and save. The system journal then returns to Ubuntu's size-based limit.

What the setting does not cover

  • The mail log on servers that have rsyslog installed (/var/log/mail.log). Ubuntu rotates it on its own schedule, four weeks by default. On servers without rsyslog, mail logs go to the system journal and the setting covers them.
  • Logs written by your customers' own applications inside their sites, such as a WordPress debug log.
  • Backups that were taken while older log entries still existed, and copies on an offsite backup destination. Those follow the backup retention you set under Backups.