On 31/10/13 07:53, Youngsang Shin wrote: > Hi, > > I'm looking for a method to trace all of lifecycle events for each of > VMs in XenServers. > > To monitor the below example information: > 1) to build a hierarchy of VMs > : which VM is a parent of some VMs (which VM was copied from) > 2) every single lifecycle event of each VM > : when it was created, shutdowned, restarted, copied, live-migrated, etc > > I've tried to parse the log, xensource.log. However, it doesn't log > every lifecycle events clearly. It's pretty hard to follow each VM > lifecycle command in the log. > > At this point, I'm thinking of a way to watch XAPI events. But, I'm > not sure if it would nicely work without any harsh complication. > > Is there any nice way to trace all of such lifecycle events of VM? >
If you're into parsing logs, audit.log might be a better choice. I don't think we log things initiated from inside the guest, though - for example, an internal reboot. Event watching should probably give you what you want - but unless you were watching all the time you may miss transients, e.g. power-state changes. You can register to see only updates to VMs, which would cut down on the amount of uninteresting stuff you'd otherwise have to ignore. Jon
_______________________________________________ Xen-api mailing list Xen-api@lists.xen.org http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api