Log retention
What decides how long logs are kept: the per-device disk quota, whether the oldest logs are deleted or logging stops when it fills, exporting and the signed backup archive.
What decides how long logs are kept
FortiLogger has no separate retention period setting where you enter how many days or months logs are kept. The period is the result of the four things below. The legal retention period is set by law and regulation; FortiLogger neither calculates nor enforces it for you, so you set the quota and the backup that cover it.
- The disk quota per device and what happens when it is full.
- Exporting logs to files.
- The signed backup archive taken at the end of each day.
- The device license: no new logs are taken from a device whose license has expired.
Disk quota
On Device > Device Settings you set how much log data stays in the database with Reserved Disk Quota per device (as a percentage of the disk). In the same Logs section you choose what happens when the quota is full with When allocated disk space is full:
- Overwrite: When the quota fills, the oldest logs are deleted and new logs keep being written. The retention period shifts by itself with how fast the quota fills.
- Stop Logging: Logs are not deleted; when the quota fills, writing new logs stops. The logs of these devices are shown as occupied space.
How the quota is calculated and the disk space indicators are on the Disk quota page, and the device settings are on Adding a device.
With Overwrite, old logs are deleted permanently
If you have a record-keeping obligation, choose the quota according to the expected log volume and period, and make sure the signed backups are running: How to meet Law 5651.
To get a warning mail when the quota allocated to a device reaches 80%, turn on the notification on Config > Mail Settings: Notifications.
Exporting
On Tools > Log Import / Export you can export the older logs in the database to FTP, a network location or the local server. Exported logs stay at the destination regardless of the quota; when you need them you can import them back on the same page and inspect them in the interface. See Log import and export for the steps.
The signed backup archive
While log backup and signing is on, at the end of each day that day’s logs are written to a file, signed and sent to the backup destination you chose (Ftp or Server). These files do not depend on the quota in the database; the Backup / Log-Sign screen has no retention period field for backup files, so you manage the files at the destination yourself.
For setup see How to meet Law 5651 and Backup and storage, and for the signature Timestamp.
Device license and old logs
FortiLogger takes no new logs from a device whose license or trial has expired; but if you tick Continue to view old logs and reports when registering the device, that device’s old logs and reports stay viewable. Details: Device licensing.
Was this page helpful?
Thanks for your feedback!