ESXi not forwarding logs to remote syslog server
search cancel

ESXi not forwarding logs to remote syslog server

book

Article ID: 429016

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • When configure an ESXi host to forward logs to a remote syslog server  following Configuring syslog on ESXi, the targeted server does not receive any logs.
  • Upon checking the error logs in /var/log/vmsyslogd.err on the ESXi host, you see log entries similar to the following:
vmsyslog.loggers.network : ERROR   ] SSL certificate verification failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1016)
vmsyslog.loggers.network : ERROR   ] SSL certificate verification failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1016)
vmsyslog.loggers.network : ERROR   ] failed to establish connection to remote syslog server 'FQDN of targetserver':23514

Environment

 

  • VMware ESXi 7.x

  • VMware ESXi 8.x

 

Cause

Syslog server is failing to trust ESXi certificate.

Resolution

To resolve this issue, you must export the root signing certificate from vCenter Server (or the certificate authority that signed the ESXi/Syslog certificates) and ensure it is trusted.

Follow these steps to identify and export the correct root certificate:

  1. Log in to the ESXi host via SSH.

  2. Verify the signing certificate details by checking the /etc/vmware/ssl/rui.crt file:

     
    openssl x509 -in /etc/vmware/ssl/rui.crt -text -noout
    
  3. Locate the Authority Key Identifier within the certificate output. For example:

     
    X509v3 Authority Key Identifier: 
        keyid:AA:BB:CC:DD:EE:FF:GG:AA:BB:CC:DD:EE:FF:GG:AA:BB:CC:DD:EE
    
  4. Log in to your vCenter Server via SSH.

  5. List the trusted root certificates stored in the VMware Certificate Store (VECS) to locate the matching Authority Key Identifier:

     
    /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOTS --text | less
    
  6. Note the Alias of the certificate entry that matches your Authority Key Identifier.

  7. Export the root certificate to a file using the identified alias:

     
    /usr/lib/vmware-vmafd/bin/vecs-cli entry getcert --store TRUSTED_ROOTS --alias <ALIAS_NAME> --output /tmp/trustedroot.crt
    
  8. Provide and import this trustedroot.crt certificate into your remote syslog server environment to establish mutual trust, or ensure the appropriate CA chain is updated on the ESXi side depending on your environment's specific syslog target capabilities.