Skip to main content
shafiq23
Staff & Editor
Staff & Editor
Mar 12, 2025 7:06 AM UTC

Technical Tip: Rebuild log database

  • Apr 16, 2026 11:16 AM UTC
  • 0 replies
  • 365 views
  • Translate All
Description This article describes how to rebuild the FortiADC log database.
Scope FortiADC, FortiADC-VM.
Solution

Symptom:

  1. Cannot display logs in Log&Report.
  2. Inconsistent and delayed log display.

 

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
    edit <vdom-name>

        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.

 

1.PNG

 

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!
Do you want to continue? (y/n)y

 

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:
Technical Tip: How to upgrade Log Database manually 
Technical Tip: Manually upgrade history statistics database 

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024