VMware Cloud Community
sakura7go
Contributor
Contributor

Log rotating settings for hostd.log and vpxa.log

Does anybody know the default log rotating settings for hostd.log and vpvx.log on ESX 3.5 Update4, such as rotate log size, period of time, and count?

It seems that these two files are rotating with 10 archives by default. As for VMware log files, vmkernel, vmkwarning, and vksummary are defined log rotating under /etc/logrotate.d,

but there are no description for hostd and vpxa log files. And there are no description of log rotating in /etc/vmware/hostd/config.xml as below. Thanks.

<log>

<directory>/var/log/vmware/</directory>

<name>hostd</name>

<outputToConsole>false</outputToConsole>

<level>info</level>

</log>

0 Kudos
3 Replies
AndreTheGiant
Immortal
Immortal

Those file have the same size.

So the rotation is probably built-in in the code of the service.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
ThompsG
Virtuoso
Virtuoso

Evening,

This knowledge base article should do the trick: 0 27368775

You were in the correct location but just needed to add the following settings to the config.xml file -

<maxFileSize>5242880</maxFileSize> -- Maximum size of each log file, in bytes

  • <maxFileNum>50</maxFileNum> -- Maximum number of log files*

If the above link does not work then search the VMware knowledge base for article number: 1004795

Kind regards,

Glen

Message was edited by: ThompsG

sakura7go
Contributor
Contributor

Thank you for your response.

As Andre said, the default value for log parameters must be built-in specification, that's what I 'd like to know ....

And if I need to set maximum value, I'll follow steps Glen wrote . Thanks.

0 Kudos