FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
nithincs
Staff & Editor
Staff & Editor
Article Id 193512

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.