6.5.1

Table Of Contents
Procedure
1 Log in to the ESXi Shell as root.
2 In the /etc/vmware/logfilters le, add the following entry to create a log lter.
numLogs | ident | logRegexp
where:
n
numLogs sets the maximum number of log entries for the specied log messages. After reaching
this number, the specied log messages are ltered and ignored. Use 0 to lter and ignore all the
specied log messages.
n
ident species one or more system components to apply the lter to the log messages that these
components generate. For information about the system components that generate log messages,
see the values of the idents parameters in the syslog conguration les. The les are located in
the /etc/vmsyslog.conf.d directory. Use a comma-separated list to apply a lter to more than one
system component. Use * to apply a lter to all system components.
n
logRegexp species a case-sensitive phrase with Python regular expression syntax to lter the log
messages by their content.
For example, to set a limit of maximum two-log entries from the hostd component for messages that
resemble the SOCKET connect failed, error 2: No such file or directory phrase with any error
number, add the following entry:
2 | hostd | SOCKET connect failed, error .*: No such file or directory
N A line starting with # denotes a comment and the rest of the line is ignored.
3 In the /etc/vmsyslog.conf le, add the following entry to enable the log ltering capability.
enable_logfilters = true
4 Run the esxcli system syslog reload command to reload the syslog daemon and apply the
conguration changes.
Turn Off Compression for vpxd Log Files
By default, vCenter Server vpxd log les are rolled up and compressed into .gz les. You can turn o this
seing to leave the vpxd logs uncompressed.
Procedure
1 Log in to the vCenter Server using the vSphere Web Client.
2 Select Administration > vCenter Server .
3 Select Advanced .
4 In the Key text box, type log.compressOnRoll.
5 In the Value text box, type false.
6 Click Add, and click OK.
ESXi VMkernel Files
If the VMkernel fails, an error message appears and then the virtual machine reboots. If you specied a
VMware core dump partition when you congured your virtual machine, the VMkernel also generates a
core dump and error log.
More serious problems in the VMkernel can freeze the machine without an error message or core dump.
vSphere Monitoring and Performance
174 VMware, Inc.