Log files
In a multi-tenant environment it is common to see logs files growing fast. Though it is almost impossible to predict, in the field we see that in a general deployment they can easily hit 100Gb-200Gb.
By default, log files are written to a location on the system volume (e.g. C:\ProgramData\Veeam). Keeping logs on the system drive is not recommended as they can easily fill up the entire volume and make the system services crash.
To avoid this scenario, the best practice is to move logs to a separate volume or drive.
Below is information on default logs location and ways to change it.
VCC Server
Default locations: |
---|
C:\ProgramData\Veeam\Backup |
C:\ProgramData\Veeam\Veeam Availability Console\Log\Agent |
C:\ProgramData\Veeam\Veeam Vac Deployment Service |
How to change the settings related to Veeam Backup & Replication log files can be found at KB1825.
VCC Cloud Gateway
Default location: |
---|
C:\ProgramData\Veeam\Backup |
Change log location:
- Open the registry with regedit
-
Add or change the following key:
LogDirectory Type: STRING Location: HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\ Description: Defines logs default location. Default value: Default directory. Recommended value: Path to a folder on non-system drive having sufficient free space.
VSPC Server
Default location: |
---|
C:\ProgramData\Veeam\Veeam Availability Console\Log\Server |
Change location:
- Locate C:\Program Files\Veeam\Availability Console\ApplicationServer\Veeam.MBP.Service.exe.config
- Open it in a text editor
-
Search for:
<DefaultLogSettings LogMaxSizeBytes="104857600" LogFilesNumber="2" ArchivesLimit="40"
SeverityThreshold="Info" LogDirectoryPath="" />
-
Change the value of LogDirectoryPath:
Example:
<DefaultLogSettings LogMaxSizeBytes="104857600" LogFilesNumber="2" ArchivesLimit="40"
SeverityThreshold="Info" LogDirectoryPath="E:\logs" />
- Restart the Veeam Management Portal service to apply the new settings.
VSPC Web UI
NOTE: Files Communications.log and SystemInformation.txt remain in the original location and can currently not be relocated.
Web UI logs
Default location: |
---|
C:\ProgramData\Veeam\Veeam Availability Console\Log\UI |
Change location:
- Locate “C:\Program Files\Veeam\Availability Console\Web UI\appsettings.Logging.json”
- Open the file with a text editor
- In the file, find the following line:
“path”: “%ProgramData%\Veeam\Veeam Availability Console\Log\UI”
RESTful API logs
Default location: |
---|
C:\ProgramData\Veeam\Veeam Availability Console\Log\REST |
Change location:
- Locate “C:\Program Files\Veeam\Availability Console\RestAPI\appsettings.Logging.json”
- Open the file with a text editor
- In the file, find the following line:
“path”: “%ProgramData%\Veeam\Veeam Availability Console\Log\REST”