Kibana docker setup

I am running Elasticsearch cluster (2 master, 2 data and 1 voter) as docker containers behind a load balanced setup. F5 URL for that looks like https://myelastic.mycompany.com. I am also running Kibana container that connects to the elastic cluster. Kibana's F5 URL looks like https://mykibana.mycompany.com.

I have currently configured my "ELASTICSEARCH_HOSTS" to be '["http://esdata1.mycompany.com:9200","http://esdata2.mycompany.com:9200"]' and this entire setup works perfectly without any issues.

However I would like to use F5 URL in the "ELASTICSEARCH_HOSTS" instead of specific cluster instance url. The reason is I have 2 datacenters where the entire stack gets deployed. And for each datacenter, I had to manually update the above environment variable with the correct instance url and I am trying to find a solution to avoid it. Is this even possible?

Welcome to our community! :smiley:

You should be able to do that, yes.

1 Like

It didn’t work with load balancer url. It worked with the hostname of the cluster instance. So I went ahead with that.

@warkolm Here is the latest update. It worked with the load balanced url.

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