Title: Is there a way to retrieve data from a second Elasticsearch instance in Kibana?
Tags: elasticsearch;kibana
Question: I have an already an ELK stack. I wonder if it is possible to retrieve data from a second Elasticsearch instace in Kibana?

Comment: This is whole different elasticsearch database, different than the existing ELK stack.

Comment: What do you exactly mean with *a second Elasticsearch **instance***? Another node or whole cluster?

Here is the accepted answer: When you say "second Elasticsearch instance", I assume you mean a second cluster. For this you can use Cross Cluster Search (CCS), which you will first need to configure in Elasticsearch:

```PUT _cluster/settings
{
  "persistent": {
    "cluster": {
      "remote": {
        "your_remote_cluster": {
          "seeds": [
            "<dns-name&gt;:9300"
          ]
        }
      }
    }
  }
}
```

Then you need to add the Elasticsearch cluster in Kibana on which you configured the remote cluster (where you ran the ```PUT _cluster/settings```). And finally add the right index pattern in Kibana](https://www.elastic.co/guide/en/kibana/current/management-cross-cluster-search.html) with ```your_remote_cluster:<pattern&gt;``` (```your_remote_cluster``` is the name you have configured in the PUT).

PS: If you are after a HA setup where one Kibana instance can talk to multiple Elasticsearch nodes in the same cluster, use the ```elasticsearch.hosts``` setting added in 6.6.


Here is another answer: Link to kibana configuration bellow. Kibana is only able to target one cluster, so you can target different url but with very important restriction.

https://www.elastic.co/guide/en/kibana/current/settings.html

elasticsearch.hosts:
    Default: "http://localhost:9200" The URLs of the Elasticsearch instances to use for all your queries. All nodes listed here must be on the same cluster.


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2019:00:09/17/19', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<elasticsearch><kibana>', 'Title': 'Is there a way to retrieve data from a second Elasticsearch instance in Kibana?', 'ViewCount': 64, 'id': 57977576, 'user_AboutMe': '<p>MS Certified Azure Architect Expert</p>\n<p>Google Cloud Certified Architect</p>\n', 'user_AccountId': 9081095.0, 'user_DisplayName': 'MoonHorse', 'user_Reputation': 1671.0, 'user_Views': 183.0, 'user_id': 8539389.0}}