Challenge
This article documents how to change the defaults for the following settings:1. The absolute log file directory from which all logs will be stored.
2. Maximum size each log is allowed to reach before beginning a new log file.
3. Number of archived logs to be kept before removal.
4. The total size for a job’s logs to reach before Veeam will begin archiving (gzip) inactive logs to save space.
5. Amount of logs that are archived per job.
Note: After making changes to these setting the Veeam server must be restarted to apply changes and ensure that previous log files are unlocked.
Solution
The following registry keys are used to manage log file location, file size and count:Note: All registry values are to be set within the key HKLM\SOFTWARE\Veeam\Veeam Backup and Replication on the server where the Veeam Backup & Replication console is installed.
* These values may need to be created if they are not present in the registry. If the settings you currently have are default, then you will need to add these values as they will not inherently already exist.
──────────────────────────────────────────────────────────
*1. Default log directory location:
Type: String
Name: LogDirectory
Data: <Path>
Example:
──────────────────────────────────────────────────────────
2. Maximum file size. New files are created when a file reaches the set max size.
Example: Svc.VeeamBackup.log -> Svc.VeeamBackup_1.log
Type: DWORD
Name: MaxLogSize
Data: <value in KiB>
Default: 10240 (binary)
──────────────────────────────────────────────────────────
3. Maximum log count. Number of log generations to retain.
Example: Svc.VeeamBackup_1.log, Svc.VeeamBackup_2.log, etc.
Type: DWORD
Name: MaxLogCount
Data: <numeric value>
Default: 10
──────────────────────────────────────────────────────────
*4. Total size of uncompressed logs, applies per job.
Type: DWORD
Name: UncompressedLogsMaxTotalSize
Data: <value in KiB>
Default: 512000
──────────────────────────────────────────────────────────
*5. Total amount of archived generations of logs
Example: Svc.VeeamBackup.1.gz Svc.VeeamBackup.2.gz
Type: DWORD
Name: LogsArchivesMaxCount
Data: <numeric value>
Default: 10
──────────────────────────────────────────────────────────