Export-VBRLogs
Short Description
Collects system logs for export.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
ServerExport-VBRLogs -Server <CHost[]> -FolderPath <String> [-Compress] [-From <DateTime>] [-To <DateTime>] [-Wait]
[-LastDays <Int32>] [<CommonParameters>]
-
JobExport-VBRLogs -Job <IJob[]> -FolderPath <String> [-Compress] [-From <DateTime>] [-To <DateTime>] [-Wait]
[-LastDays <Int32>] [<CommonParameters>]
-
EntityExport-VBRLogs -Entity <IVmItem[]> -FolderPath <String> [-Compress] [-From <DateTime>] [-To <DateTime>] [-Wait]
[-LastDays <Int32>] [<CommonParameters>]
-
BackupExport-VBRLogs -Backup <CBackup[]> -FolderPath <String> [-Compress] [-From <DateTime>] [-To <DateTime>] [-Wait]
[-LastDays <Int32>] [<CommonParameters>]
-
DiscoveredComputerExport-VBRLogs -Computer <VBRDiscoveredComputer[]> -FolderPath <String> [-Compress] [-From <DateTime>]
[-To <DateTime>] [-Wait] [-LastDays <Int32>] [<CommonParameters>]
-
TenantExport-VBRLogs -Tenant <IVBRCloudTenant[]> -FolderPath <String> [-Compress] [-From <DateTime>] [-To <DateTime>]
[-Wait] [-LastDays <Int32>] [<CommonParameters>]
-
ScaleOutRepositoryExport-VBRLogs -ScaleOutRepository <CExtendableRepository[]> -FolderPath <String> [-Compress]
[-From <DateTime>] [-To <DateTime>] [-Wait] [-LastDays <Int32>] [<CommonParameters>]
Detailed Description
This cmdlet collects system logs. The log files are written to the folder you specify in this cmdlet.
You can use this cmdlet to collect logs you can send to the Veeam support.
You can get logs for all kind of virtual host, any jobs including SureBackup jobs, entities including VMware or Hyper-V VMs, or any backup. Use an appropriate parameter set for each case.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Backup |
Specifies an array of backups. The cmdlet will collect logs of these backups.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Compress |
Defines that the log files will be compressed.
Default:
Note: To disable this option, set the parameter value to |
|
False |
Named |
False |
|
Computer |
Specifies an array of protected computers. The cmdlet will collect logs of these computers.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
Entity |
Specifies an array of VMs. The cmdlet will collect logs of these VMs.
Accepts the
|
|
True |
Named |
True (ByPropertyName, ByValue) |
|
FolderPath |
Specifies the destination folder. The cmdlet will export logs to this folder. |
|
True |
Named |
False |
|
From |
Specifies the start date to collect the logs for export. Enter the date in format set in your workstation Date and Time settings. Note: This parameter is deprecated and will be marked as obsolete in the future. You must re-write your scripts by using the LastDays parameter. Otherwise, the script will return an error. |
|
False |
Named |
False |
|
Job |
Specifies an array of jobs. The cmdlet will collect logs of these jobs. Accepts all kinds of jobs.
Accepts the
|
|
True |
Named |
True (ByPropertyName, ByValue) |
|
LastDays |
Specifies the number of days for which to collect logs. If you do not specify this parameter, Veeam Backup & Replication will collect logs for the last 1 day. |
|
False |
Named |
False |
|
ScaleOutRepository |
Specifies an array of scale-out backup repositories. The cmdlet will collect logs of these repositories.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Server |
Specifies an array of servers. The cmdlet will collect logs from these servers. Note: The selected servers must be running and available over the network.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Tenant |
Specifies an array of cloud tenants. The cmdlet will collect logs of these cloud tenants. Note: This parameter does not return logs of VMware Cloud Director and Active Directory tenant accounts.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
To |
Specifies the end date to collect the logs for export. Enter the date in format set in your workstation Date and Time settings. Note: This parameter is deprecated and will be marked as obsolete in the future. You must re-write your scripts by using the LastDays parameter. Otherwise, the script will return an error. |
|
False |
Named |
False |
|
Wait |
Defines that the command waits for the process to complete before accepting more input. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRLogs object that contains system logs.
Examples
Example 1. Collecting Logs for Servers
|
This example shows how to collect log files from the
Perform the following steps:
|
Example 2. Collecting Logs for Jobs
|
This example shows how to collect log files for the
Perform the following steps:
|
Example 3. Collecting Logs for VM
|
This example shows how to collect log files for the
Perform the following steps:
|
Example 4. Collecting Logs for Backups
|
This example shows how to collect log files for the
Perform the following steps:
|
Example 5. Collecting Logs for Protected Computers
|
This example shows how to collect log files for protected computers with the following settings:
Perform the following steps:
|
Related Commands
Get-VBRServerReturns hosts connected to the backup infrastructure.Find-VBRViEntityLooks for VMware objects.Get-VBRBackupReturns backups.Get-VBRSureBackupJobReturns SureBackup jobs.Get-VBRDiscoveredComputerReturns discovered computers.