Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest
Please, try again later.
Veeam Backup & Replication interoperates with other Veeam products. Please refer to the 'Additional Logging' section at the bottom of this article for links to guides on collecting logs for other Veeam products.
If you are a Cloud Provider and need to gather logs from your Service Provider infrastructure, please review KB2096 Veeam Cloud Connect - Compiling Provider/Tenant Logs for Support Cases.
The following animation demonstrates how to compile logs in Veeam Backup & Replication.
To select multiple jobs or objects in one bundle, do one of the following:
At the Date Range step of the wizard, use the "Collect logs for the last N+1 days" option, where N is the number of days since the issue occurred plus one.
Example: (Issue occurred about 5 or 6 days ago, a value of 7 is specified.)
At the Location step of the Export Logs wizard, specify the destination folder to which the logs will be exported.
Note: In versions of Veeam Backup & Replication prior to version 12, it was possible to click Finish before the log export process had been completed. If the Export Logs window was closed prematurely, the process would continue in the background. When the log export was completed, the .zip file would be created. If you checked the log export folder and a .zip file with that day's date was not present, the log export process had not been completed.
If you are facing a situation where you do not have access to the Veeam Backup & Replication Console and cannot use the built-in log export tool, please use one of the following methods to manually export logs.
The following script, when run on the Veeam Backup Server, will copy all files within the default log folder, the user logs, and the setup logs that have been modified in the past 3 days to a temporary folder, then zip those files and delete the temporary copy of the logs. You then attach the resulting zip file to the case.
Note: Either create the destination folder C:\Temp\
or update the $destinationFolder
value.
# Adjustable values
$destinationFolder = "C:\temp"
$pastDays = 3
# Identify primary VBR log folder
$sourceFolder = try { Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Veeam\Veeam Backup and Replication" -Name "LogDirectory" -ErrorAction Stop } catch { "C:\ProgramData\Veeam\Backup" }
# Create a temporary folder to store collected logs
$tempFolder = New-Item -ItemType Directory -Path (Join-Path -Path $env:TEMP ([Guid]::NewGuid().ToString())) | Select-Object -ExpandProperty FullName
# Use Robocopy to copy log files to temporary staging folder
robocopy $sourceFolder $tempFolder\Backup /S /MAXAGE:$pastDays /COPYALL /NFL /NDL /NJH /NJS
robocopy (Join-Path $env:LOCALAPPDATA "Veeam\Backup") $tempFolder\UserAppData /S /MAXAGE:$pastDays /COPYALL /NFL /NDL /NJH /NJS
robocopy "C:\ProgramData\Veeam\Setup\Temp" $tempFolder\Setup\Temp /S /MAXAGE:$pastDays /COPYALL /NFL /NDL /NJH /NJS
# Compress the collected log files to generate log bundle to attached to support case.
Compress-Archive -Path "$tempFolder\*" -DestinationPath (Join-Path $destinationFolder "$(Get-Date -Format "yyyy-MM-dd'T'HHmmss")_ManualVeeamBackupLogs.zip")
# Remove the temporary folder
Remove-Item -Path $tempFolder -Recurse -Force
# Open Explorer to the location of the output log bundle
explorer $destinationFolder
#
The following robocopy commands will copy all files within the default log directory(s) that have been modified in the past 3 days to the folder you specify (default: C:\temp\logs\). When the robocopy command is complete, you'll need to compress the folder and attach it to the case.
Note: These commands are formatted for use with PowerShell.
Primary Log Folder:
robocopy C:\ProgramData\Veeam\Backup C:\temp\logs\VeeamLogs_$(Get-Date -Format "yyyy-MM-dd'T'HHmmss")\ /maxage:3 /S /V /NP /NDL /NFL
robocopy (Join-Path $env:LOCALAPPDATA "Veeam\Backup") C:\temp\logs\VeeamAppData_$(Get-Date -Format "yyyy-MM-dd'T'HHmmss")\ /maxage:3 /S /V /NP /NDL /NFL
robocopy C:\ProgramData\Veeam\Setup\Temp C:\temp\logs\VeeamSetupLogs_$(Get-Date -Format "yyyy-MM-dd'T'HHmmss")\ /maxage:3 /S /V /NP /NDL /NFL
Zip the entire %ProgramData%\Veeam\Backup\ folder on the Veeam Backup Server and provide that file to Support.
Also, include %localappdata%\Veeam\Backup\ for user-specific logs.
Note: This process may result in a log bundle that is quite large.
More information about Veeam Backup & Replication logging and file locations can be found here.
Your feedback has been received and will be reviewed.
Please, try again later.
Please try select less.
This form is only for KB Feedback/Suggestions, if you need help with the software open a support case
Your feedback has been received and will be reviewed.
Please, try again later.