VMware Cloud Community
ewannema
Enthusiast
Enthusiast

VIMA logging and log rotation - does it miss entries?

Does anyone know how VIMA deals with log rotation? It polls for logs and it seems like there is the possibility that it will miss some events if events are written after the previous poll and log is rotated before the next one.

The manual seems to indicate that it uses the DiagnosticManager object in the API and I don't see a way to get anything other than the current log.

http://wannemacher.us
Tags (2)
0 Kudos
2 Replies
lamw
Community Manager
Community Manager

You can use vilogger which enables logs to be directed from the hosts down to VIMA. The logs themselves are logged locally on either the ESX or ESXi hosts, but when you want a local copy you can use vilogger to enable which provides you detail logs like hostd.log, vpxa.log and messages. You can set the rotation with the utility along with the interval of polling to the hosts, but no events are missed from the host's point of view. You'll get pretty close to real time logs and the interval of polling is 1sec up to 3600secs. Hopefully this answered your question

=========================================================================

--William

VMware ESX/ESXi scripts and resources at:

ewannema
Enthusiast
Enthusiast

As you indicate the logs are "close" to real time. What happens when the logs are rotated between polling intervals? I guess I will have to do some experimental investigation. That will tell me if the behavior is what I expect, but not how to work around it.

http://wannemacher.us
0 Kudos