Skip to main content
nithincs
Staff & Editor
Staff & Editor
Feb 19, 2021 3:06 PM UTC

Change memory space for logging

  • Nov 24, 2026 7:59 AM UTC
  • 0 replies
  • 14153 views
  • Translate All

Description

Commands to increase or decrease the logging space size in memory.

Scope

FortiGate.

Solution

When FortiGate is enabled with memory logging, a default specific amount of memory space will be allocated for memory logging.

It is possible to change this default memory space for logging.

 

config log memory global-setting
    set max-size 21097717  
end


Max-Size <----- the default value is in bytes.

 

When the log reaches 95% of the configured limit, a warning message will appear. Once it hits 100%, it will start overwriting the existing logs.

 

Note:

Memory logging is not suggested in Lower end firewall, for troubleshooting any specific issue or for monitoring the traffic logs locally, it is possible to enable the memory logging and disable it later. Alternatively, for long-term log storage and monitoring, consider using FortiAnalyzer or FortiCloud services.

    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