hostd,vpxa, and vpxd logs so that additional data is saved. This data may be useful for troubleshooting purposes.hostd), VirtualCenter Agent Service (vpxa), and vCenter (vpxd) logs are automatically rotated and maintained to manage their growth. Information in the logs can be lost if the logs are rotated too quickly.hostd and vpxa log location: /var/run/log/vpxd logs on a vCSA/vCenter Appliance: /var/log/vmware/vpxdCaution: Enabling trivia or verbose logging for a longer duration might cause performance degradation on vCenter Server. Only enable trivia or verbose logging for troubleshooting purposes. VMware recommends reverting to default logging (info level) immediately after the troubleshooting is complete. VMware does not recommend enabling trivia/verbose logging in a production environment. Perform the steps in this article only after consulting VMware technical support.
Before you increase the size and number of logs:
Caution: VMware does not recommend decreasing the number or size of logs from the default settings.
This article contains three sections:
hostd logging from the command line.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.rotateandSyslog.loggers.hostd.size.- In the Value column, adjust the setting.
Note:Syslog.loggers.hostd.sizespecifies the size in KiB (1024 Bytes). So specifying "10240" means 10240 * 1024 = 10 MiB.- Click OK to save.
Note: In ESXi 7.0U2 and higher: 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
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.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.rotateandSyslog.loggers.vpxa.size.- In the Value column, adjust the setting.
Note:Syslog.loggers.hostd.sizespecifies the size in KiB (1024 Bytes). So specifying "5120" means 5120 * 1024 = 5 MiB- Click OK to save.
Note: In ESXi 7.0U3 and higher: 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)
/etc/vmware-vpx/vpxd.cfg.<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. <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 |