We are trying to write data parallelly to 2 different clusters let us say, cluster A and cluster B from Logstash. In the sample Logstash configuration is given below.
input {
elasticsearch{
hosts => [“cluster C”]
index => "index_name"
}
}
output {
elasticsearch {
hosts => ["cluster A"]
index => "index_name_clusterA"
}
elasticsearch {
hosts => ["cluster B"]
index => "index_name_clusterB"
}
}
When the cluster B is down or not reachable the ingestion towards the cluster A get stopped and data loss observed. I want to send the data to cluster A even if the other is down. Is there any exception handling mechanisms to achieve this?