REST API knowledge exchange
Post Reply
manoj98
Novice
Posts: 4
Liked: never
Joined: Mar 19, 2024 8:42 am
Full Name: Manoj Kumar Motupalli
Contact:

REST API session logs not retrieving entire information

Post by manoj98 »

Hi,
i am trying to get the particular backup job (created in Veeam Backup & Replication) session logs to view all the information of the backup job session after the run completion. But, i am getting only some parameters in the JSON output such as status, start time, end time etc,.(added below)
I want to capture all the parameters such as job duration , DATA processed, read, transferred & number of VMs using REST API. do we need to increase logging level anywhere to capture all the details ? if not, can you please help me with the REST API details which will give entire backup job logs which includes all the parameters as i stated above.

Veeam B&R version: 12.1.0.2131
REST API reference i followed: https://helpcenter.veeam.com/docs/backu ... essionLogs

output i am getting

Code: Select all

{"totalRecords":8,"records":[{"status":"Succeeded","id":2595007,"startTime":"2024-03-15T02:36:13.812114-04:00","updateTime":"2024-03-15T02:36:13.812114-04:00","title":"Load: Source 74% > Proxy 15% > Network 35% > Target 67%","description":""},{"status":"Succeeded","id":2595008,"startTime":"2024-03-15T02:36:13.812114-04:00","updateTime":"2024-03-15T02:36:13.812114-04:00","title":"Primary bottleneck: Source","description":""},{"status":"Succeeded","id":2595009,"startTime":"2024-03-15T02:36:14.015237-04:00","updateTime":"2024-03-15T02:36:14.015237-04:00","title":"Job finished at 3/15/2024 2:36:13 AM","description":""},{"status":"Succeeded","id":2594639,"startTime":"2024-03-15T02:04:57.842979-04:00","updateTime":"2024-03-15T02:04:57.842979-04:00","title":"Job started at 3/15/2024 2:04:52 AM","description":""},{"status":"Succeeded","id":2594640,"startTime":"2024-03-15T02:05:00.749347-04:00","updateTime":"2024-03-15T02:05:03.124419-04:00","title":"Building list of 
machines to process","description":""},{"status":"Succeeded","id":2594641,"startTime":"2024-03-15T02:05:07.671491-04:00","updateTime":"2024-03-15T02:05:07.671491-04:00","title":"VM size: 481 GB (241.5 GB used)","description":""},{"status":"Succeeded","id":2594642,"startTime":"2024-03-15T02:05:07.749641-04:00","updateTime":"2024-03-15T02:05:07.749641-04:00","title":"Changed block tracking is enabled","description":""},{"status":"Succeeded","id":2594649,"startTime":"2024-03-15T02:05:14.718651-04:00","updateTime":"2024-03-15T02:36:13.952726-04:00","title":"Processing b2-1-vm5","description":""}]}
oleg.feoktistov
Veeam Software
Posts: 2021
Liked: 673 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: REST API session logs not retrieving entire information

Post by oleg.feoktistov » 1 person likes this post

Hi,

We didn't support session stats in VB REST API just yet, but we have plans for it. The nearest API where you could get stats from is our Powershell module. See Get-VBRBackupSession cmdlet. You are after Progress property:

Code: Select all

$sessions = Get-VBRBackupSession
$sessions[0].Progress
Best regards,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests