RESTful knowledge exchange
Post Reply
benjimattVee
Lurker
Posts: 1
Liked: never
Joined: Nov 13, 2020 4:14 pm
Contact:

Only receiving 1st Failed Log for BackupTaskSession

Post by benjimattVee »

Is there a different way to gather the Logs for failed backup jobs VIA REST?

first I get the BackupJobSession, then I use the below url to get the tasksessions.

https://Localserver:xxxx/api/backupTaskSessions/00000000REDACTED000?format=Entity

Successful sessions show reason as blank which is ok. Failed sessions are only picking up the first entry which is sometimes helpful and other times useless. THis example is shown below. I really couldve used the Second error but the REST api only fives me the first error that states 'finalizing'

Image

HannesK
Veeam Software
Posts: 7689
Liked: 1316 times
Joined: Sep 01, 2014 11:46 am
Location: Austria
Contact:

Re: Only receiving 1st Failed Log for BackupTaskSession

Post by HannesK »

Hello,
and welcome to the forums.

Logs are available in the file system (c:\programdata\veeam\...). Not via RESTful API

Best regards,
Hannes

oleg.feoktistov
Veeam Software
Posts: 857
Liked: 305 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Only receiving 1st Failed Log for BackupTaskSession

Post by oleg.feoktistov »

Hi,

Error messages for backup and backup task sessions are written to Config DBs similarly in both EM and VBR, and information retrieved through REST API depends solely on what's written in the corresponding tables. For reason property the first error message is logged by design. We could, of course, bypass this and parse logs directly from xml log file, but it would significantly affect performance.

Best regards,
Oleg

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests