Agentless, cloud-native backup for Microsoft Azure
Post Reply
enoch
Service Provider
Posts: 171
Liked: 13 times
Joined: Jun 29, 2013 12:14 pm
Full Name: Peter Enoch
Contact:

E-mail session logs at error/warning?

Post by enoch »

Hi all,

Been using Veeam Backup for Azure 3 month on a client. Everything works fine, but we sadly saw that the client after 3 months was using 40K euro on snapshots :cry:

We got e-mails each day saying backup was fine, but after closer look in the session logs on the backup appliance we saw these errors:
"Invalid snapshot deletion" and "Orphaned snapshot deletion"

In this case it was actually an problem with the ressource group having a "Azure delete lock"

My question is two, 1) WHY does we not pr. default get these errors by e-mail? and 2) Possible to setup system in Veeam so we also get e-mail pr. day about the "sessions log" ?
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: E-mail session logs at error/warning?

Post by nielsengelen » 1 person likes this post

Hi Peter,

1. Could you clarify which errors you refer to? Are these in the session log of the policy or do you mean a report for "obsolete" snapshot deletion?
2. Can you clarify which session log (policy, deletion,...) as we have several so I can check if we maybe have something via our API?
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
enoch
Service Provider
Posts: 171
Liked: 13 times
Joined: Jun 29, 2013 12:14 pm
Full Name: Peter Enoch
Contact:

Re: E-mail session logs at error/warning?

Post by enoch »

Thanks for reply.

I’ve created a support ticket where the logs is included, can you checkout support case: 05614338

Looking forward to hear from you again.
enoch
Service Provider
Posts: 171
Liked: 13 times
Joined: Jun 29, 2013 12:14 pm
Full Name: Peter Enoch
Contact:

Re: E-mail session logs at error/warning?

Post by enoch »

nielsengelen wrote: Sep 07, 2022 6:36 am Hi Peter,

1. Could you clarify which errors you refer to? Are these in the session log of the policy or do you mean a report for "obsolete" snapshot deletion?
2. Can you clarify which session log (policy, deletion,...) as we have several so I can check if we maybe have something via our API?
1. I only see these errors under "Management" and then "Session log" - Would be optimal like in the VBR that ALL errors can be send to e-mail (in our case our ticket system)
2. For now it would be nice to have the possibility to get these informations (success, warning and error) for "Orphaned snapshot deletion", "Orphaned snapshot deletion" and "Snapshot deletion" log in the "Session Log"
jorgedlcruz
Veeam Software
Posts: 1493
Liked: 655 times
Joined: Jul 17, 2015 6:54 pm
Full Name: Jorge de la Cruz
Contact:

Re: E-mail session logs at error/warning?

Post by jorgedlcruz » 1 person likes this post

Hello Peter,
I think it is a very valid feature request, especially to notify of errors like this. I am aware that these sessions and the result can be retrieved today using the API, and from there send alerts over SMTP, reporting, etc.

Beyond the DYI, I have created an internal FR to add all of these additional sessions into Veeam ONE, so we can alert and report on those.
Jorge de la Cruz
Senior Product Manager | Veeam ONE @ Veeam Software

@jorgedlcruz
https://www.jorgedelacruz.es / https://jorgedelacruz.uk
vExpert 2014-2024 / InfluxAce / Grafana Champion
nielsengelen
Product Manager
Posts: 5797
Liked: 1215 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: E-mail session logs at error/warning?

Post by nielsengelen » 1 person likes this post

1. We'll analyze the case and see how to improve reporting on those. These are currently available via the REST API however that would require custom scripting to catch those. Is your ticket system just an email system or would a script work as well?
2. We have had this request in the past and it's on our longer roadmap to add this but I can't provide an ETA for it.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
enoch
Service Provider
Posts: 171
Liked: 13 times
Joined: Jun 29, 2013 12:14 pm
Full Name: Peter Enoch
Contact:

Re: E-mail session logs at error/warning?

Post by enoch »

jorgedlcruz wrote: Sep 07, 2022 8:40 am Hello Peter,
I think it is a very valid feature request, especially to notify of errors like this. I am aware that these sessions and the result can be retrieved today using the API, and from there send alerts over SMTP, reporting, etc.

Beyond the DYI, I have created an internal FR to add all of these additional sessions into Veeam ONE, so we can alert and report on those.
Agree for us and the customer, this "issue" was REALLY a problem, because everything looked fine and was first discovered when we got a BIG payment on the Azure subscription :evil:
enoch
Service Provider
Posts: 171
Liked: 13 times
Joined: Jun 29, 2013 12:14 pm
Full Name: Peter Enoch
Contact:

Re: E-mail session logs at error/warning?

Post by enoch »

nielsengelen wrote: Sep 07, 2022 8:48 am 1. We'll analyze the case and see how to improve reporting on those. These are currently available via the REST API however that would require custom scripting to catch those. Is your ticket system just an email system or would a script work as well?
2. We have had this request in the past and it's on our longer roadmap to add this but I can't provide an ETA for it.
1. We should be able to to do REST API and extract this. Do you have a guide and maybe some scripts we can use "to get started"?
2. I REALLY think this is needed - we did not have a chance reacting on this - we where sure such an error would be as part of the backup log we are e-mail about.
jorgedlcruz
Veeam Software
Posts: 1493
Liked: 655 times
Joined: Jul 17, 2015 6:54 pm
Full Name: Jorge de la Cruz
Contact:

Re: E-mail session logs at error/warning?

Post by jorgedlcruz »

Hello Peter,
We have our API Reference here - https://helpcenter.veeam.com/docs/vbazu ... obSessions You can see that you can query for the job types you need.

In terms of examples, I am more versatile with bash-shell, and we already have a really good script that collects this and other data you would need. For example, take a look here: Just take the initial config of your VBAzure to obtain token etc; then for you, the most relevant thing starts at row 67, where I query sessions, take out what you do not need, put the ones are the most important, and tweak the output of the HTML to your need.

Then schedule this script to run once a day, so you get an HTML Report with the JobSession you want and the result. That should make the trick, give it a try.
Jorge de la Cruz
Senior Product Manager | Veeam ONE @ Veeam Software

@jorgedlcruz
https://www.jorgedelacruz.es / https://jorgedelacruz.uk
vExpert 2014-2024 / InfluxAce / Grafana Champion
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests