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 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.
Notes:
$sourceFolder = "C:\programdata\Veeam\Backup"
$userFolder = Join-Path $env:LOCALAPPDATA -ChildPath "Veeam\Backup"
$destinationFolder = "C:\temp"
$pastDays = 3
# Create a temporary folder to hold the files and folders
$tempFolder = Join-Path -Path $env:TEMP -ChildPath ([Guid]::NewGuid().ToString())
New-Item -ItemType Directory -Path $tempFolder | Out-Null
# Use Robocopy to copy and filter the source folder files based on modified time
robocopy $sourceFolder $tempFolder /S /MAXAGE:$pastDays /COPYALL /NFL /NDL /NJH /NJS
# Create a subfolder for user app data within the temporary folder
$userAppDataTemp = Join-Path -Path $tempFolder -ChildPath "userappdata"
New-Item -ItemType Directory -Path $userAppDataTemp | Out-Null
# Use Robocopy to copy and filter the user folder files based on modified time
robocopy $userFolder $userAppDataTemp /S /MAXAGE:$pastDays /COPYALL /NFL /NDL /NJH /NJS
# Compress the copied files into a zip file including the subfolder for user appdata
$destinationZip = Join-Path -Path $destinationFolder -ChildPath "$(Get-Date -Format "yyyy-MM-dd'T'HHmmss")_ManualVeeamBackupLogs.zip"
Compress-Archive -Path $tempFolder -DestinationPath $destinationZip -Force
# Remove the temporary folder
Remove-Item -Path $tempFolder -Recurse -Force
# Open Explorer to the location of the output log bundle
explorer.exe $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 a PowerShell.
Primary Log Folder:
robocopy C:\ProgramData\Veeam\Backup C:\temp\logs\Veeam_$(Get-Date -Format "yyyy-MM-dd'T'HHmmss")\ /maxage:3 /s
robocopy (Join-Path $env:LOCALAPPDATA "Veeam\Backup") (Join-Path "C:\temp\logs" ("VeeamAppData_" + (Get-Date -Format "yyyy-MM-dd'T'HHmmss"))) /maxage:3 /s
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.