Kibana shows elasticsearch unavailable after SSL enabled

Hi all,

I have successfully configured SSL encryption for my elasticsearch cluster, but when I change the kibana.yml file to connect to the elasticsearch cluster, kibana starts, but it shows elasticsearch as service unavailable.

My elasticsearch version is 2.4 and the kibana version is 4.6.1

The contents of my kibana.yml are:

elasticsearch.url: ""
logging.dest: /var/log/kibana.log
elasticsearch.username: es_kibana_server
shield.useUnsafeSessions: true
shield.skipSslCheck: true
shield.encryptionKey: "noozaibesohzohduolohgheedooleejietaeruokooyeesohphaixaipeituthuu"
reporting.encryptionKey: "johxaecaiheelaipoagawaiquawaishonienipiezootahlooxueghaiqueerohc"
sense.defaultServerUrl: ""
server.ssl.key: /opt/kibana/config/owaUSkibana.key
server.ssl.cert: /opt/kibana/config/owaUSkibana.crt /opt/kibana/config/ca.crt

The kibana log shows nothing I'm afraid.

Kibana works just fine when I disable the SSL communication in elasticsearch however, so it's definitely a problem communicating with the elasticsearch cluster.

Any ideas?

Hi Kenneth,

What OS are you on?

Can you show us the relevant parts of your Elasticsearch.yml also (the ssl parameters).

Is everything good in the elasticsearch.log? Any messages about ssl parameters or certificates?
We might need to increase the log level there.

Same with kibana.stdout. There must be something in it about failing to connect to elasticsearch? Can you paste that here?

From the Kibana server, can you connect to Elasticsearch at with that es_kibana_server user and password?


Hi Lee,

The operating system is Ubunto 14. Here's the elasticsearch.yml entries owaNAM owaUSdata-0 /datadisks/disk1/elasticsearch/data ["owaUSdata-0:9300","owaUSdata-1:9300","owaUSdata-2:9300"]
node.master: true true
index.number_of_shards: 5
index.number_of_replicas: 1
discovery.zen.minimum_master_nodes: 2 false non_loopback
marvel.agent.enabled: true
node.max_local_storage_nodes: 1
shield.ssl.keystore.path: /etc/elasticsearch/config/truststore.jks
shield.ssl.keystore.password: owastore
shield.transport.ssl: true
shield.http.ssl: true
shield.http.ssl.client.auth: optional
shield.authc.pki.files.role_mapping: /etc/elasticsearch/shield/role_mapping.yml
type: pki
order: 0
type: file
order: 1
type: native
order: 2

I've looked and I can't see any logs created at all by the elasticsearch server. I found the logging.yml file which seems to have the default values.

you can override this using by setting a system property, for example -Des.logger.level=DEBUG

es.logger.level: INFO
rootLogger: ${es.logger.level}, console, file

log action execution errors for easier debugging

action: DEBUG

deprecation logging, turn to DEBUG to see them

deprecation: INFO, deprecation_log_file

reduce the logging for aws, too much is logged under the default INFO

com.amazonaws: WARN

aws will try to do some sketchy JMX stuff, but its not needed.

com.amazonaws.jmx.SdkMBeanRegistrySupport: ERROR
com.amazonaws.metrics.AwsSdkMetrics: ERROR

org.apache.http: INFO


#gateway: DEBUG
#index.gateway: DEBUG

peer shard recovery

#indices.recovery: DEBUG


#discovery: TRACE TRACE, index_search_slow_log_file
index.indexing.slowlog: TRACE, index_indexing_slow_log_file

additivity: false
index.indexing.slowlog: false
deprecation: false

I've checked and the kibana server log is empty as well. Not sure why this is? I've tried killing the kibana process and it automatically starts up again.

I can connect from the kibana server to the elasticsearch successfully

owa_admin@owaUSkibana:~$ curl --cacert ca.crt -XGET -u es_kibana_server https://owaUSdata-0:9200/_nodes?pretty
Enter host password for user 'es_kibana_server':
"cluster_name" : "owaNAM",
"nodes" : {
"Wcyzdp0JSF2fFvq3M_VRpQ" : {
"name" : "owaUSdata-0",
"transport_address" : "",
"host" : "",
"ip" : "",
"version" : "2.4.0",
"build" : "ce9f0c7",
"http_address" : "",
"attributes" : {
"max_local_storage_nodes" : "1",
"master" : "true"
"settings" : {
"cluster" : {
"name" : "owaNAM"
"shield" : {
"http" : {
"ssl" : "true",
"client" : {
"auth" : "optional"

Sorry, but I'm very new to elasticsearch


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.