vmsyslog.loggers.network : ERROR ] SSL certificate verification failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for ''. (_ssl.<Splunk_IP>c:1006)
vmsyslog.loggers.network : ERROR ] failed to establish connection to remote syslog server <Splunk_IP>:6514
vmsyslog.msgQueue : ERROR ] <Splunk_IP>:6514 - lost 2 log messages
vmsyslog.main : CRITICAL] reloading (209###21)
openssl s_client -connect <Syslog_Server_FQDN>:6514 -showcerts
Sample output:CONNECTED(00000003)
depth=1 DC = com, DC = <Splunk_name> = <Splunk_FQDN>
verify error:num=2:unable to get issuer certificate
issuer= CN =<Splunk_FQDN>
verify return:1
depth=0
issuer= DC = com, DC = <Splunk_name>, CN =<Splunk_FQDN>
verify return:1
---
Certificate chain
0 s:
i:DC = com, DC = <Splunk_name>, CN =<Splunk_FQDN>
a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256
v:NotBefore: MM DDHH:MM:SS GMT; NotAfter: MM DDHH:MM:SS GMT
esxcli system syslog config get
VMware vSphere ESXi 8.x
This issue occurs due to an identity mismatch between the ESXi host syslog configuration and the remote syslog server's SSL certificate. The ESXi host is configured to connect using an IP address, but the presented certificate only contains and validates the server's FQDN.
Reconfigure the ESXi syslog service to connect using the remote syslog server's FQDN to match the certificate's SAN. Follow the below steps:
esxcli system syslog config get
esxcli system syslog config set --loghost="ssl://<Syslog_Server_FQDN>:6514"
esxcli system syslog reload