vSphere Installation and Setup
Configure Syslog on ESXi Hosts
All ESXi hosts run a syslog service (
components to log files.
You can use the vSphere Web Client or the
service.
For more information about using vCLI commands, see Getting Started with vSphere Command-Line Interfaces.
Procedure
1
In the vSphere Web Client inventory, select the host.
2
Click the Manage tab.
3
In the System panel, click Advanced System Settings.
4
Locate the Syslog section of the Advanced System Settings list.
5
To set up logging globally, select the setting to change and click the Edit icon.
Option
Syslog.global.defaultRotate
Syslog.global.defaultSize
Syslog.global.LogDir
Syslog.global.logDirUnique
Syslog.global.LogHost
6
(Optional) To overwrite the default log size and log rotation for any of the logs.
a
Click the name of the log you that want to customize.
b
Click the Edit icon and enter the number of rotations and log size you want.
7
Click OK.
Changes to the syslog options take effect immediately.
262
), which logs messages from the VMkernel and other system
vmsyslogd
esxcli system syslog
Description
Sets the maximum number of archives to keep. You can set this number
globally and for individual subloggers.
Sets the default size of the log, in KB, before the system rotates logs. You
can set this number globally and for individual subloggers.
Directory where logs are stored. The directory can be located on mounted
NFS or VMFS volumes. Only the /scratch directory on the local file
system is persistent across reboots. The directory should be specified as
[datastorename] path_to_file where the path is relative to the root of the
volume backing the datastore. For example, the path
[storage1] /systemlogs maps to the
path /vmfs/volumes/storage1/systemlogs.
Selecting this option creates a subdirectory with the name of the ESXi host
under the directory specified by Syslog.global.LogDir. A unique directory
is useful if the same NFS directory is used by multiple ESXi hosts.
Remote host to which syslog messages are forwarded and port on which
the remote host receives syslog messages. You can include the protocol
and the port, for example, ssl://hostName1:514. UDP (default), TCP,
and SSL are supported. The remote host must have syslog installed and
correctly configured to receive the forwarded syslog messages. See the
documentation for the syslog service installed on the remote host for
information on configuration.
vCLI command to configure the syslog
VMware, Inc.
Need help?
Do you have a question about the VS4-ENT-PL-A - vSphere Enterprise Plus and is the answer not in the manual?