hostd
using a text editor.hostd
is found at /etc/vmware/hostd/config.xml
.config.xml
file (located at /etc/vmware/hostd/config.xml
) to true
.<outputToFiles>false</outputToFiles>
<config>
:
<log>
<directory>/var/log/vmware/</directory>
<level>verbose</level>
<name>hostd</name>
<outputToConsole>false</outputToConsole>
<maxFileSize>52428800</maxFileSize>
<maxFileNum>50</maxFileNum>
</log>
:
</config>
<directory>/var/log/vmware/</directory>
directory>
entry can also be updated with a full path to a VMFS datastore. This may be useful on ESXi hosts where space is limited. For example:<directory>/vmfs/volumes/<datastore name>/<log directory></directory>
<level>info</level>
<name>hostd</name>
<outputToConsole>false</outputToConsole>
<maxFileSize>5242880</maxFileSize>
<maxFileSize>
parameter to change the maximum size of the logs.<maxFileNum>50</maxFileNum>
<maxFileNum>
parameter to change the maximum number of logs.hostd
management agent for the change to take effect. For more information, see Restarting the Management agents on an ESXi or ESX host (1003490).Note: In 6.x, hostd log output is set by default to output to syslog. In this case, the advanced settings Syslog.loggers.hostd.rotate and Syslog.loggers.hostd.size takes precedence over the settings on the /etc/vmware/hostd/config.xml file.
To change the settings:
- Connect to the vCenter Server vSphere Client.
- Click on the ESXi host.
- Navigate to Configure > System > Advanced System Settings.
- Click Edit in the top right.
- In the Key column, filter for Syslog.loggers.hostd.rotate and Syslog.loggers.hostd.size.
- In the Value column, adjust the setting.
- Click OK to save.
Starting in ESXi 7.0U2, changes to the logging level for hostd have changed and are accessible by running the tool /bin/configstorecli per How to change configuration settings for Hostd service in vSphere ESXi 7.0 Update 2 (82227)
To increase vpxa logging from the command line.
vpxa
in a text editor.vpxa.cfg
file is located at /etc/vmware/vpxa
. <config>
:
<log>
:
<maxFileNum>50</maxFileNum>
<maxFileSize>5242880</maxFileSize>
<level>verbose</level>
</log>
:
</config>
<directory>/var/log/vmware/</directory>
directory>
entry can also be updated with a full path to a VMFS datastore. This may be useful on ESXi hosts where space is limited. For example:<directory>/vmfs/volumes/<datastore name>/<log directory></directory>
<level>info</level>
<maxFileSize>5242880</maxFileSize>
<maxFileSize>
parameter to change the maximum size of the logs.<maxFileNum>50</maxFileNum>
<maxFileNum>
parameter to change the maximum number of logs.For ESXi 7.0 U3 and later, changes to the logging level for vpxa have changed and are accessible using the tool /bin/configstorecli, see vSphere ESXi 7.0 U3 VPXA configuration properties (87438)
hostd
management agent for the change to take effect. For more information, see Restarting the Management agents on an ESXi or ESX host (1003490).Note: In 6.x/7.x, vpxa log output is set by default to output to syslog. In that case, the advanced settings Syslog.loggers.vpxa.rotate and Syslog.loggers.vpxa.size takes precedence over the settings on the vpxa.cfg file.
To change the settings:
- Connect to the vCenter Server vSphere Client.
- Click on the ESXi host.
- Navigate to Configure > System > Advanced System Settings.
- Click Edit in the top right.
- In the Key column, filter for Syslog.loggers.vpxa.rotate and Syslog.loggers.vpxa.size.
- In the Value column, adjust the setting.
- Click OK to save.
<log>
<compressOnRoll>true</compressOnRoll>
<level>info</level>
<maxFileNum>30</maxFileNum>
<maxFileSize>52428800</maxFileSize>
<outputToConsole>false</outputToConsole>
<outputToFiles>true</outputToFiles>
</log>
<level>info</level>
info
. Change it to the preferred logging level. For information on the different logging levels, see the #AdditionalInformationsection.<maxFileNum>30</maxFileNum>
<maxFileNum>
parameter to change the maximum number of logs<maxFileSize>5242880</maxFileSize>
<maxFileSize>
parameter to change the maximum size of the logs.vpxd.cfg
file. To make permanent log level modifications, you must edit the vpxd.cfg
file.
Option |
Description |
---|---|
None (Disable logging) |
Turns off logging |
Error (Errors only) |
Displays only error log entries |
Warning (Errors and warnings) |
Displays warning and error log entries |
Info (Normal logging) |
Displays information, error, and warning log entries |
Verbose (Verbose) |
Displays information, error, warning, and verbose log entries |
Trivia (Extended verbose) |
Displays information, error, warning, verbose, and trivia log entries |