Skip to main content
spoojary
Staff
Staff
Sep 26, 2023 12:29 PM UTC

Technical Tip: Configuring Firewall for Log Roll Over when Disk Usage Exceeds 80%

Description This article describes how to configure the FortiGate for log rollover when the disk usage surpasses 80%.
Scope FortiGate.
Solution

Resolution:

  1. Understanding Default Disk Usage: FortiGate systems reserve about 25% of disk space for system utilities and unforeseen quota overflows. As a result, only approximately 75% of the disk space is available for log storage.
  2. Configuring Log Settings: By default, when the log disk is full, the system will overwrite the oldest logs. However, users can adjust this setting to either:
  • Overwrite the oldest logs when the log disk becomes full.
  • Stop logging when the log disk is full.

To modify this behavior, use the following CLI commands:

 

config log disk setting
    set diskfull [overwrite|nolog]

end

 

Where:

overwrite: Overwrite the oldest logs when the log disk is full.
nolog: Stop logging in when the log disk is full.


Note:

It is essential to regularly monitor disk usage and ensure that it does not affect the firewall's operational efficiency. Making frequent backups and utilizing a FortiAnalyzer for off-device logging can be beneficial in long-term log retention and monitoring.

Related article :
Troubleshooting Tip: Getting 'Disk log has rolled' message in logs

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT