Log View : Configuring rolling and uploading of logs : Rolling and uploading CLI configuration
 
Rolling and uploading CLI configuration
To enable or disable log file uploads:
To enable log uploads, enter the following CLI commands:
config system log settings
config rolling-regular
set upload enable
end
end
To disable log uploads, enter the following CLI commands:
config system log settings
config rolling-regular
set upload disable
end
end
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:
hour <integer>
The hour of the day when the when the FortiAnalyzer rolls the traffic analyzer logs.
min <integer>
The minute when the FortiAnalyzer rolls the traffic analyzer 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 FortiAnalyzer rolls the traffic analyzer logs.
hour <integer>
The hour of the day when the when the FortiAnalyzer rolls the traffic analyzer logs.
min <integer>
The minute when the FortiAnalyzer rolls the traffic analyzer logs.