Monitoring your system : Logging : Configuring logging : Reducing hard disk usage by caching logs
 
Reducing hard disk usage by caching logs
If your logging configuring writes data to the local hard drive frequently, the writing process can cause excessive wear to the drive. To reduce hard disk usage, you can configure FortiADC to cache multiple logs in memory. After the number of cached records reaches a maximum that you specify, FortiADC writes the data to disk in a single operation.
To configure log caching via the CLI
Enter the following commands:
get log setting local
set event-log-cached-lines <int>
set traffic-log-cached-lines <int>
end
where:
<int> is the number of log records that FortiADC caches before it writes them to the hard disk