Technical Tip: FortiAnalyzer logfile size and rolling
Description
This article describes how to reduce the size of uploaded files.
Sometimes, the size of log files uploaded by FortiAnalyzer is much larger than the rollover file size defined in log settings.
An uploaded log file of size 1500KB or above may be seen with these settings:
config system log settings
config rolling-regular
set file-size 500
set upload enable
set when daily
set directory "/"
set ip 192.192.192.1
set log-format csv
set username "XXX"
end
end
Scope
FortiAnalyzer
Solution

For uploaded log files, the size varies depending on the selected format. For example:
- CSV uncompressed is the format that generates the larger files.
- Native format generates smaller files.
config rolling-regular
set upload enable
set gzip-format enable
end
