Skip to main content
  1. Posts/

Adjusting the amount of hostd log files

·113 words·1 min· loading · loading · ·
Howto ESX/ESXi

There was a question posted on the VMware Community Forums regarding the ability to increase the number of hostd log files.  Here is the solution I provided:

To change the max amount of log files for hostd you will need to edit /etc/vmware/hostd/config.xml. In the file you will find the following section:

<log>
  <directory>/var/log/vmware/</directory>
  <name>hostd</name>
  <outputToConsole>false</outputToConsole>
  <level>verbose</level>
</log>

You will want to add <maxFileNum>numberLogs</maxFileNum> like so:

{% highlight xml %} /var/log/vmware/ hostd false verbose 10 {% endhighlight %}

Your logs, however, should have multiple gzipped versions or rotated logs in /var/log/vmware. You will probably see /var/log/vmware/hostd-#.log.gz in there. If you do then you can view those logs with the following command:

zless /var/log/vmware/hostd-1.log.gz
James Bowling
Author
James Bowling
Principal Cloud Engineer @ Global Oil/Gas Drilling Company

Related

SLES for VMware and VMware Tools
·115 words·1 min· loading · loading
Howto Linux SLES Vmware VSphere
vSMP VMs and Per CPU Licensed Applications
·121 words·1 min· loading · loading
Howto ESX ESXi VCenter VirtualCenter Vmware
VCP-410 Study Guide Posts
·98 words·1 min· loading · loading
Certification VCP Vmware