Created on 03-22-2015 02:25 AM Edited on 10-21-2024 11:42 PM By Anthony_E
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
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.