Search code examples
elasticsearchlogstashkibanakibana-4elastic-stack

How can access from Kibana several Elasticsearch instances in different machines?


I would like to have two Eleasticsearch instances in different machines accessible from the same Kibana instance. Something like this:

Kibana instance

Do you know how could I do it? My first idea is to create a cluster with two nodes, how could I create a cluster with nodes with different machines? Which parameter should I change from Elasticsearch config file ?


Solution

  • ElasticSearch contains Discovery Module: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html

    by default Multicast discovery is used. This means ES will be searching across your network any another ES instances ( in common terms). You can read more about of discovery types supported in article above.

    Also you can manually specify hosts, that should be in a cluster:

    discovery.zen.ping.multicast.enabled: false
    discovery.zen.ping.unicast.hosts: [ "host1:9300", "host2:9300" ...  ]