我有两个ES集群,集群1运行在2.4.x版本上,集群2运行在5.1.1版本上。当前logstash (5.x版本)正在使用logstash中的以下输出配置将索引写入群集1 (2.4.x):
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
}
}这个是可能的吗?或者,有没有更好的办法将实时数据提供给两个不同的集群?
发布于 2017-01-04 05:10:01
是的,您可以有两个这样的输出,但请注意,如果一个块,另一个也会。
https://stackoverflow.com/questions/41452320
复制相似问题