To roll logs when they reach a specific size:
Enter the following CLI commands:
config system log settings config rolling-regular set file-size <integer>
end
end
where <integer> is the size at which the logs will roll, in MB.
To roll logs on a schedule:
To disable log rolling, enter the following CLI commands:
config system log settings config rolling-regular set when none
end
end
To enable daily log rolling, enter the following CLI commands:
config system log settings
config rolling-regular
set upload enble set when daily set hour <integer> set min <integer> set file-size <integer>
end
end where:
The hour of the day when the when the FortiManager rolls the
hour <integer>
traffic analyzer logs.
The minute when the FortiManager rolls the traffic analyzer
min <integer>
logs.
file-size
<integer> Roll log files when they reach this size (MB).
To enable weekly log rolling, enter the following CLI commands:
config system log settings config rolling-regular set when weekly
set days {mon | tue | wed | thu | fri | sat | sun} |
|
set hour <integer> set min <integer>
end end where: |
|
days {mon | tue | wed | thu | fri | sat | sun} | The days week when the FortiManager rolls the traffic analyzer logs. |
hour <integer> | The hour of the day when the when the
FortiManager rolls the traffic analyzer logs. |
min <integer> | The minute when the FortiManager rolls the traffic analyzer logs. |