Host-based backup of Nutanix AHV VMs.
Post Reply
mogan2055847
Enthusiast
Posts: 29
Liked: never
Joined: Dec 08, 2021 10:39 am
Full Name: Mogansundram Apna
Contact:

Session\Audit logs for 1 year

Post by mogan2055847 »

Hello,

I need to retrieve 1 year audit logs due to audit purpose, which including all operation tasks performed, example restore task, policy create, modify, delete task and etc..

From the Veeam Backup for Nutanix AHV dashboard webpage > it only shows Sessions in Last 24 Hours — displays the number of sessions started for system operations as well as for data protection or disaster recovery tasks during the past 24 hours that completed successfully, the number of sessions that completed with warnings, the number of sessions that completed with errors, and the number of sessions that are currently running. ---> https://helpcenter.veeam.com/docs/vbahv ... tml?ver=50

Question: I need to have the session/audit logs for 1 year or more, how can I accomplish this?

Thank you in advance.
Kochkin
Veeam Software
Posts: 67
Liked: 21 times
Joined: Sep 18, 2014 10:10 am
Full Name: Nikolai Kochkin
Contact:

Re: Session\Audit logs for 1 year

Post by Kochkin »

You can get the sessions using public REST API for that. You can check this particular script (it builds report for 1 day, but you can change it to any other period of time)
https://github.com/VeeamHub/veeam-nutan ... _report.py


But please be aware that by default the appliance stores the sessions data for the last 13 weeks (91 days). It is possible to change the sessions retention period in appsettings.json file on the appliance.

To change it:
  • Enable ssh
  • Connect to hte machine via ssh
  • navigate to /opt/VeeamBackupAgent/appsettings.json
  • Change "SessionRetention" parameter to the desired value (in days).
  • Restart service: sudo service VeeamBackupAgent restart
mogan2055847
Enthusiast
Posts: 29
Liked: never
Joined: Dec 08, 2021 10:39 am
Full Name: Mogansundram Apna
Contact:

Re: Session\Audit logs for 1 year

Post by mogan2055847 »

Hello Nikolai,

Thank you for your feedback. There is no way we can export those 1-year session\audit log from the Veeam Backup for Nutanix AHV dashboard ?

There is an Exporting Logs using Backup Appliance Web Console, what included inside these logs? Will these logs contain all the details needed for audit and can export up to years?

https://helpcenter.veeam.com/docs/vbahv ... tml?ver=50
https://helpcenter.veeam.com/docs/vbahv ... tml?ver=50


Thank you in advance.
mogan2055847
Enthusiast
Posts: 29
Liked: never
Joined: Dec 08, 2021 10:39 am
Full Name: Mogansundram Apna
Contact:

Re: Session\Audit logs for 1 year

Post by mogan2055847 »

Kochkin wrote: Feb 20, 2024 10:16 am You can get the sessions using public REST API for that. You can check this particular script (it builds report for 1 day, but you can change it to any other period of time)
https://github.com/VeeamHub/veeam-nutan ... _report.py


But please be aware that by default the appliance stores the sessions data for the last 13 weeks (91 days). It is possible to change the sessions retention period in appsettings.json file on the appliance.

To change it:
  • Enable ssh
  • Connect to hte machine via ssh
  • navigate to /opt/VeeamBackupAgent/appsettings.json
  • Change "SessionRetention" parameter to the desired value (in days).
  • Restart service: sudo service VeeamBackupAgent restart
Hello Nikolai,

Thank you for your feedback. Or is there a way I can generate or export all the backup and restore job for the whole year for audit purpose?

There is an Exporting Logs using Backup Appliance Web Console, what included inside these logs? Will these logs contain all the details which I needed and can export up to years?

https://helpcenter.veeam.com/docs/vbahv ... tml?ver=50
https://helpcenter.veeam.com/docs/vbahv ... tml?ver=50


Thank you in advance.
Top
Kochkin
Veeam Software
Posts: 67
Liked: 21 times
Joined: Sep 18, 2014 10:10 am
Full Name: Nikolai Kochkin
Contact:

Re: Session\Audit logs for 1 year

Post by Kochkin »

"Exporting Logs" exports information for support, unfortunately it does not contain the information which you see in UI.

Currently the only way to export data for 1 year is REST API (and only if you have this data on your appliance -- see setting "SessionsRetention").
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest