【发布时间】:2017-05-18 01:34:00
【问题描述】:
我有两个 ES 集群,集群 1 在 2.4.x 版本上运行,集群 2 在 5.1.1 版本上运行。目前,logstash(5.x 版本)正在向集群 1(2.4.x)写入索引,logstash 中的输出配置如下:
output {
elasticsearch {
hosts => "cluster1:9200"
index => "index-pattern-%{+YYYY.MM.dd}"
sniffing => "true"
template_overwrite => true
}}
我想通过将以下logstash输出配置文件更改为:
output {
elasticsearch {
hosts => "cluster1:9200"
index => "index-pattern-%{+YYYY.MM.dd}"
sniffing => "true"
template_overwrite => true
}
elasticsearch {
hosts => "cluster2:9200"
index => "index-pattern-%{+YYYY.MM.dd}"
sniffing => "true"
template_overwrite => true
}
}
这可能吗?或者有没有更好的办法将实时数据提供给两个不同的集群?
【问题讨论】:
标签: amazon-web-services elasticsearch logstash kibana elastic-stack