Skip to main content
darisandy
Staff
Staff
Nov 4, 2024 7:47 AM UTC

Technical Tip: ComLog Files Overwrite old logs

Description This article describes what happens when ComLog files reach max file size.
Scope FortiGate.
Solution

ComLog is a feature on certain FortiGate hardware modules that can record console output. Once it is enabled, it can record console output logs up to 4MB filesize.

 

It is confirmed, that when the files reach the max filesize, FortiGate will overwrite the old log entries.

 

To enable/disable the feature:

 

diag debug comlog enable/disable

 

To check the status:

 

diag debug comlog info

 

To show the entries:

 

diag debug comlog read

 

To clear the log entries:

 

diag debug comlog clear

 

    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