Following an upgrade to Splunk Enterprise 10.2.8, internal logs may show repetitive errors (approximately 10 times per minute per host) similar to the following:
ERROR HttpClientRequest - HTTP client error=Connection refused while accessing server=https://localhost:5435 for request=https://localhost:5435/v1/postgres/status.
Verify if the local PostgreSQL status port is listening:
ss -tlnp | grep 5435
If no process is listening on TCP/5435, check the PostgreSQL sidecar logs for initialization errors:
tail -n 100 $SPLUNK_HOME/var/log/splunk/sup-pkg-postgres-stdout.log
Identify the specific x509 validation failure:
x509: certificate is not valid for any names, but wanted to match localhost
Inspect the active server certificate to confirm the absence of the Subject Alternative Name (SAN) extension for localhost:
openssl x509 -in <path_to_server_cert> -text -noout | grep -A 1 "Subject Alternative Name"
Check for the presence of custom SSL configurations in web.conf or server.conf that might be overriding default certificates.
To restore the PostgreSQL sidecar and clear the internal error flood, disable the unintended TLS SNI hostname matching by adding an environment variable to the Splunk launch configuration.
Back up the current launch configuration file:
cp -p $SPLUNK_HOME/etc/splunk-launch.conf $SPLUNK_HOME/etc/splunk-launch.conf.backup_$(date +%Y%m%d)
Edit $SPLUNK_HOME/etc/splunk-launch.conf and add the following line:
PGSSLSNI=0
Restart the Splunk service to apply the change. For clustered environments, a rolling restart is recommended:
$SPLUNK_HOME/bin/splunk restart
Validate that the PostgreSQL sidecar is now listening on the expected port:
ss -tlnp | grep 5435
Confirm the health status returns a "Ready" state:
curl -vk https://localhost:5435/v1/postgres/status
The expected JSON response should include "healthy": true and "status": "Ready".