Skip to main content
nithincs
Staff & Editor
Staff & Editor
February 19, 2021

Technical Tip: Change memory space for logging

  • February 19, 2021
  • 0 replies
  • 13747 views

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.