Hi Sven,

On your engine you can run the following to get the vms info from the engine database:

su - postgres -c "psql -U postgres engine -c  'select * from vms;'" |less -S

You may also find some info on the specific vm in the engine log and the libvirt log:

On the engine - /var/log/ovirt-engine/engine.log (this will probably have been rotated in your case. Check to see the oldest engine.log in the directory).

On the host the the vm runs on - /var/log/libvirt/qemu/vm111.log


Hope this helps,


Kevin

On Tue, Mar 21, 2017 at 9:45 AM, Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:
On Tue, Mar 21, 2017 at 8:42 AM, Sven Achtelik <Sven.Achtelik@eps.aero> wrote:

Hi,

 

does anyone know if this information is pulled from the logs and if it’s related to the log-rotation or if this is part of the Engine DB. I need to know if it’s possible to read this information like 2 or 3 years later for some auditing purpose. It might help if you could let me know where to look at.

 

Thank you,

 

Sven

Von: users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] Im Auftrag von Sven Achtelik
Gesendet: Donnerstag, 16. März 2017 11:54
An: users@ovirt.org
Betreff: [ovirt-users] Event History for a VM

 

Hi All,

 

I would need to have an Event-History of our VMs for auditing purposes that is able to go back until the moment the VM was created/imported. I found the Events Tab in the VM view and found that this is not showing everything to the moment of creation. Things that are important for me would be any change in CPUs or Host that the VM is pinned to. Are the Events stored in the Engine DB and can I read them in any way ? Is there a value that needs to be changed in order to keep all Events for a VM ?

 

Thank you for helping,

 

Sven

 


+1

Gianluca

_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users