Change memory space for logging
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.
