How to meet Law 5651 with FortiLogger
The path to Turkish Law No. 5651 compliance in FortiLogger: collect logs, sign daily, set a backup destination, verify the signature and manage retention. Each step is covered in detail on its own page.
The overall flow
FortiLogger provides the log record that Turkish Law No. 5651 requires, together with a signature that makes any later change to that record evident, in three parts: logs are collected, each day’s logs are signed, and the signed files are backed up to a destination you choose. The evidence is the signed log files and the .sign file next to each one; there is no separate report type for it (the report types are Traffic, Web, Application, Email, Attack and Event).
Set it up in this order:
- Collect the logs: add the device and confirm that FortiGate and DHCP logs are flowing.
- Choose the daily signing method: a KamuSM trusted timestamp or a self-signed certificate.
- Set the backup destination and start the backup service.
- Verify the signature.
- Manage retention and monitoring.
1 - Collect the logs
First add the FortiGate device to FortiLogger and make the device send syslog to FortiLogger. The steps are on the Adding a device page. By default FortiLogger listens on UDP port 514; you can change the port on Config > System Config: System settings.
Under Law 5651 the DHCP logs of your network must also be collected:
- If FortiGate hands out DHCP, check on Logs > View Logs that “DHCP ack” logs arrive among the Event logs.
- If DHCP runs on Windows Server, configure the FortiLogger DHCP client.
Do not turn on the log filter
If you define a Log Filter on a device, the logs it drops are never stored and cannot be recovered. If you have a log retention obligation under Law 5651, do not use the filter. Details: Adding a device.
2 - Choose the daily signing method
You pick the signing method on the Sign Settings tab of Tools > Backup / Log-Sign. There are two methods:
- Self Signed Certificate: FortiLogger signs with its own certificate and the time it gets from time servers. This is the default.
- Kamu SM (Tübitak): The digest of the logs is sent to TÜBİTAK KamuSM and signed with an RFC 3161 trusted timestamp from TÜBİTAK KamuSM. To use it free of charge, choose Fortilogger Kamu SM Authentication; if you have your own KamuSM credit account, choose Custom Authentication and enter its details.
At the end of the day that day’s logs are exported to a file, hashed with SHA-256 and signed; the digest, the time, the signature and the algorithm are written to a .sign file in the same folder. Files signed with MD5 in older records can still be verified.
If you set the backup file size limit to anything other than 0, only the Self Signed Certificate method works. For details see 5651 log signing options and Timestamp.
The server clock matters
Signing relies on the server clock. If the server clock drifts more than 5 minutes from internet time, FortiLogger shows a warning. You can define custom time servers for the clock check on the Time Server Settings tab of Config > System Config: System settings.
3 - Set the backup destination
On Tools > Backup / Log-Sign, pick the device in the left part and choose the destination from the Select Backup Destination menu:
- Ftp: Backups are sent to an FTP server.
- Server: Backups are written to a folder on the server FortiLogger is installed on (for example
D:\5651_backup).
After entering the details, test the connection with Check, save the destination with Save / Select and click Start Backup Service. The Sign Log Enable option is on by default; if you turn it off, only backup is performed. Signing needs an internet connection. Step-by-step instructions: Backup and storage.
To hear about it when log receiving, signing or backup breaks, define the mail server and turn notifications on: Mail server settings, Notifications. Operation results also appear on Config > Event Logs: Event logs.
4 - Verify the signature
You verify the signature of a backed-up day with the Check Sign button. The Check Sign Process window shows the Log File, Signed at and Status of a single file, and the result reads Success! Verifed Sign Log or Danger! Not Verified Sign Log. The file list also shows each file’s Sign Type, so you can see which method signed which day.
The signature is checked only with a Server destination
If the backup destination is Ftp, the files are sent to the FTP server and the Check Sign button stays disabled. If you want to check the signature from FortiLogger, choose Server as the backup destination.
For screenshots and a verification example, see Backup and storage.
5 - Retention and monitoring
- Retention period: FortiLogger has no separate retention period setting. How long logs stay in the database is decided by the per-device disk quota: Disk quota, Log retention.
- Export: You can export older logs to FTP, a network location or the server, and import signed backups back to inspect them: Log import and export.
- Notifications: Get mail when the disk quota reaches 80% and when signing or backup fails: Notifications.
Overwrite when the quota is full
If a device’s When allocated disk space is full option is Overwrite, the oldest logs in the database are deleted when the quota fills. Your signed backup files stay on the backup destination separately; check regularly that the destination is not full and that the files are kept.
Checklist
- The device is added and logs (including DHCP “ack”) appear on Logs > View Logs.
- The log filter is off.
- The method is selected and saved on the Sign Settings tab.
- The backup destination was tested with Check and the service runs after Start Backup Service.
- Check Sign returns a successful result for the latest days.
- Mail notifications are on and the disk quota is sufficient.
Was this page helpful?
Thanks for your feedback!