Skip to main content

I spend some time in searching for a way to export job/task log as it is shown in VBR GUI:

I found ways to export all logs in detail, but not these are displayed in GUI. Helpful would be PowerShell, API, Rest, or anything else that works.

Not to be misunderstood: I do not need the job/task status, I need the logs. 

Thanks!

Hi,

try this. It is a fragment only, but I think this should give the informatoin you want.

$sessions = get-vbrbackupsession

$backupInfo = get-vbrtasksession -session $sessions[0] | where-object { $sessions[0].JobType -eq 'Backup'}

$backupInfo[0].logger.GetLog().updatedrecords


Hi,

try this. It is a fragment only, but I think this should give the informatoin you want.

$sessions = get-vbrbackupsession

$backupInfo = get-vbrtasksession -session $sessions[0] | where-object { $sessions[0].JobType -eq 'Backup'}

$backupInfo[0].logger.GetLog().updatedrecords

Thanks, @JMeixner! I will give it a try and let you know if it works!


@JMeixner  you made my day! That helped me a lot!! Thank you!


@JMeixner  you made my day! That helped me a lot!! Thank you!

PS:

 


Thanks @vNote42 ,

yes, you have to sort the output and/or select the parts you need.

Sorry, I didn’t do this in my code fragment :grin:


Mhh, there is some information missing in the powershell output - the amount of data read from a hard disk and with which speed it was read…

Powershell output:

Hard disk 1 (750 GB)

Output in VEEAM console:

Hard disk 1 (750 GB) 2,4 GB read at 186 MB/s scbt]

So there is some work to do to get all information….


Mhh, there is some information missing in the powershell output - the amount of data read from a hard disk and with which speed it was read…

Powershell output:

Hard disk 1 (750 GB)

Output in VEEAM console:

Hard disk 1 (750 GB) 2,4 GB read at 186 MB/s scbt]

So there is some work to do to get all information….

I will investigate this even more and will share my outcomes.


Mhh, there is some information missing in the powershell output - the amount of data read from a hard disk and with which speed it was read…

Powershell output:

Hard disk 1 (750 GB)

Output in VEEAM console:

Hard disk 1 (750 GB) 2,4 GB read at 186 MB/s scbt]

So there is some work to do to get all information….

@JMeixner The difference is because you show the log of the whole job, not a VM. I just added a post that shows both ways.

 


Comment