#1 Global Leader in Data Resilience

How to Collect Logs for Veeam Backup & Replication

KB ID: 1832
Product: Veeam Backup & Replication | 11 | 12 | 12.1 | 12.2 | 12.3
Published: 2013-11-19
Last Modified: 2024-12-20
Languages: DE | JP | FR | ES
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Purpose

This article documents how to collect logs from Veeam Backup & Replication and additional information to include when submitting a Veeam Support case for technical assistance.
Additional Logging

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.

Solution

Built-In Log Collection Wizard

The following animation demonstrates how to compile logs in Veeam Backup & Replication.

User-added image

  1. In the Veeam Backup & Replication Console's Main Menu (≡), hover over Help and select Support Information.
The image shows the main menu of Veeam Backup & Replication opened and the Help section expanded, a mouse hovers over the Support Information menu option.
  1. At the Scope step of the wizard, define the scope for logs export. The following are suggested choices based on the issue faced:
    • For Backup, Replication, and other non-restore jobs, select Export logs for this job. If multiple jobs are affected, use Ctrl+Click to select more than one job.
      Note: For restore point retention related issues, please use the "Export all logs" option.
    • For issues relating to Capacity Tier (SOBR offload, restore from object storage, etc.), use the “Export all logs for selected components” option and select the related backup infrastructure server(s).
      Alternatively, review KB4463: Granular Log Collection Guide for SOBR Capacity/Archive Tier Issues.
      • Note: Starting in Veeam Backup & Replication 12.3, use Export logs for these objects > Choose > Scale-Out Backup Repository. For more information, review KB4463.
    • For all other issues (including restore jobs), use the “Export all logs for selected components” option and select the related backup infrastructure server(s).
The screenshot displays the scope options of the Export logs wizard
Select Multiple Jobs or Objects in One Bundle

To select multiple jobs or objects in one bundle, do one of the following:

  • Hold [Ctrl] and click items to add to your selection.
  • Hold [Shift] and select a range of items between the currently selected item and the one you click.
  1. 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.)

The image displays the Date Range options of the Export Logs wizard
  1. At the Location step of the Export Logs wizard, specify the destination folder to which the logs will be exported.

The image displays the Location tab of the Export Logs wizard.
  1. After clicking Apply, the log collection process will start.
  2. When the Export Logs process is complete, the "Open folder" link will become active; clicking on this will take you directly to the folder where the logs have been exported. There will be a .zip file in the log export folder ready to be provided to Veeam Support.

 

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.

For information about attaching files to a support case, please review: https://www.veeam.com/kb4162

More Information

Collecting Logs Manually

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.

Option 1: Automated Log Export Script

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
#
Option 2: Semi-Automated Export Using Robocopy

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
Per-User Log Folder:
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
Setup Log Folder:
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
Option 3: Full Manual Log Collection

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.

Log File Locations

More information about Veeam Backup & Replication logging and file locations can be found here.

 

 

Additional Logging

For more information on how we process the collected data, please visit: vee.am/processing_of_personal_data
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.