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

Technical Tip: Change memory space for logging

  • Apr 16, 2026 12:52 PM UTC
  • 0 replies
  • 14128 views
  • Translate All

Description

 

This article provides commands to increase or decrease the logging space size in memory.

 

Scope

 

FortiGate.

Solution


When FortiGate is enabled with memory logging, 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   <----- Default value in Bytes.
end

 

To change the value, use the below commands.

 

config log memory global-setting
    set max-size ?                            <----- Type '?' to know the minimum and maximum value it is possible to set for logging.

aegon-kvm20 # con log  memory  global-setting
aegon-kvm20 (global-setting) # set max-size ?
min:10485760    max:105488588                 <----- Values are in Bytes.

aegon-kvm20 (global-setting) # set max-size 10485760
aegon-kvm20 (global-setting) # end

 

The log reaches 95 % in the configured limit it shows a warning message and when it reaches 100 % it will override 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.

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