gpt4 book ai didi

elasticsearch - 有没有办法从Kibana中的另一个Elasticsearch实例检索数据?

转载 作者:行者123 更新时间:2023-12-03 01:26:39 25 4
gpt4 key购买 nike

我已经有一个ELK堆栈。我想知道是否有可能从Kibana的第二个Elasticsearch实例中检索数据?

最佳答案

当您说“第二个Elasticsearch实例”时,我假设您的意思是第二个集群。为此,您可以使用跨集群搜索(CCS),首先需要使用configure in Elasticsearch:

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

然后,您需要在配置远程集群(在其中运行 PUT _cluster/settings)的Kibana中添加Elasticsearch集群。最后,使用 your_remote_cluster:<pattern>( your_remote_cluster是您在PUT中配置的名称)在Kibana]( https://www.elastic.co/guide/en/kibana/current/management-cross-cluster-search.html)中添加正确的索引模式。

PS:如果在进行HA设置之后,一个Kibana实例可以与同一集群中的多个Elasticsearch节点通信,请使用 elasticsearch.hosts setting added in 6.6

关于elasticsearch - 有没有办法从Kibana中的另一个Elasticsearch实例检索数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57977576/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com