To configure the syslog service, you can use the VMware Host Client.

Procedure

  1. Click Manage in the VMware Host Client inventory and click Advanced Settings.
  2. In the Search text box, enter the name of the setting that you want to change and click the Search icon.
    Option Description
    Syslog.global.LogHost Remote host to which syslog messages are forwarded and the port on which the remote host receives syslog messages. You can include the protocol and the port, for example, protocol://hostName1:port where protocol can be udp, tcp, or ssl. You can use only port 514 for UDP. The ssl protocol uses TLS 1.2. For example: ssl://hostName1:1514. The value of port can be any decimal number between 1 and 65535.

    While no hard limit to the number of remote hosts to receive syslog messages exists, it is recommended to keep the number of remote hosts to five or less.

    Syslog.global.logCheckSSLCerts Enforce checking of the SSL certificates when you log in to a remote host.
    Syslog.global.defaultRotate Maximum number of archives to keep. You can set this number globally and for individual subloggers.
    Syslog.global.defaultSize Default size of the log, in KB, before the system rotates logs. You can set this number globally and for individual subloggers.
    Syslog.global.LogDir Directory where logs are stored. The directory can be on mounted NFS or VMFS volumes. Only the /scratch directory on the local file system is persistent across reboots. Specify the directory 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.
    Syslog.global.logDirUnique 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.
  3. Right-click the setting name and select Edit option from the drop-down menu.
    The Edit option dialog box opens.
  4. To perform the SSL certificates check when you log in to a remote host, click True from the New value.
  5. Click Save.
  6. (Optional) To reset the key setting to default, right-click the appropriate key from the list and select Reset to default.