All ESXi hosts run a syslog service, which logs messages from the VMkernel and other system components to local files or to a remote host.
You can use the vSphere Web Client, or use the esxcli system syslog command to configure the following parameters of the syslog service.
After making configuration changes, restart the vmsyslogd syslog service by running esxcli system syslog reload.
The esxcli system syslog command allows you to configure the logging behavior of your ESXi system. With vSphere 5.0, you can manage the top-level logger and subloggers. The command has the following options.
The following workflow illustrates how you might use esxcli system syslog for log configuration. Specify one of the options listed in Connection Options for vCLI Host Management Commands in place of <conn_options>.