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.
vrajendran
Staff
Staff
Article Id 193116

Description


This article describes how to set the maximum age for logs stored on disk.

 

Scope

 

FortiGate.

Solution
By default, the maximum age for logs to store on disk is 7 days.
Logs older than this are purged.


Below are the steps to increase the maximum age of logs stored on disk.

 

config log disk setting
    set maximum-log-age                                    <----- Enter an integer value from <0> to <3650> (default = <7>)
end

 

Example.

 

config log disk setting
    set maximum-log-age 30                   <----- Here logs older than 30 days will be purged.
end

 

Note.
If the log disk becomes full before the maximum-log-age is reached, then older logs will get overwritten.

 

Related document:

Technical-Tip-How-to-configure-logging-in-disk-using-GUI-CLI