Run 2 kibana instances with different dashboards


(Guy Barnea) #1

hello,
i want to run 2 instances of kibana, such that each one will point to different es cluster.
I want that each kibana will have different dashboards.
it is possible to do such a thing?
Thanks.


(Tim Roes) #2

Hi,

that's absolutely no problem. You can just use two complete different Kibana instances, and just use different elasticsearch.url in the kibana.yml they should connect to. If they should run on the same server though, you would need to give them different ports (server.port in the config), so they don't try to listen on the same port. I would rather recommend setting them up on different servers though.

Cheers,
Tim


(Guy Barnea) #3

I did it:

  1. I ran 2 elasticsearch instances on same server, with port 9200 and 9201.
    2.I ran 2 instances of kibana:
    with port 5601 point to 9200 and the second with port 5602 point to 9201
    but both of them have the same dashboards.
    what is the problem here?

(Christian Dahlqvist) #4

Did the 2 Elasticsearch instances have the same cluster name so that they ended up forming a cluster? What did your elasticsearch.yml file look like?


(Guy Barnea) #5

i ran 2 es instances from 2 different folders so

user/elastic1/config/elasticsearch.yml containing the line:
http,port : 9200

user/elastic2/config/elasticsearch.yml containing the line:
http,port : 9201


(Christian Dahlqvist) #6

Yes, but what was discovery.zen.ping.unicast.hosts set to? If this uses the default settings, the second node will connect to the first unless cluster.name differs between the configs.


(Guy Barnea) #7

I didnt set discovery.zen.ping.unicast.hosts at all .
can you please write here what should i write in bote yml's, to create two clusters with one node?
thanks!


(Christian Dahlqvist) #8

Setting cluster.name to different values, e.g. cluster1 and cluster2, for the two nodes is sufficient.


(Guy Barnea) #9

And what about "discovery.zen.ping.unicast.hosts"?


(Christian Dahlqvist) #10

If the cluster name is different that setting does not matter.


(Guy Barnea) #11

It finally works!
Thank you very much @Christian_Dahlqvist


(system) #12

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