根据以下配置验证logstash可以同时往多个es集群输出内容,验证通过:
output {
elasticsearch {
hosts => ["http://localhost:9201"]
index => "log-web-%{[fields][tenant]}-%{+YYYY.MM.dd}"
template_overwrite => true
}
elasticsearch {
hosts => ["http://localhost:9200"]
index => "log-web-%{[fields][tenant]}-%{+YYYY.MM.dd}"
template_overwrite => true
}
}
网友评论