Technical Tip: Rebuild log database
| Description | This article describes how to rebuild the FortiADC log database. |
| Scope | FortiADC, FortiADC-VM. |
| Solution | Symptom:
To rebuild the log database, use the following CLI command:
FortiADC-KVM # exe log rebuild-db
It is necessary to wait at least 2 minutes until the log rebuild completes
Note: Log database rebuild takes place on a per-VDOM basis. Make sure to run the CLI command in the right VDOM.
config vdom execute log rebuild-db
It is recommended to rebuild the log database during off-production hours or during a maintenance window as logs might not be available during a rebuild.
Verification steps:
Navigate to Log & Report -> Event Log.
If the issue persists even after rebuilding the database, the next step is to format the logdisk using the following.
FortiADC-KVM # execute formatlogdisk
This operation will erase all data on the log disk!
Note: The command above will clear the logs from the hard disk and reformat the disk. Executing this command will trigger a reboot, so it is recommended to run this command during non-production or during the maintenance window.
Related articles: |

