Hi,
i have two different version of Elasticsearch, one is old(6.3.4) and another one as new(8.3.2), currently we are writting into old cluster from logstash, and are willing to miggrate to new cluster, to avoid any data loss we were looking for an approch using which we don't have any data loss, and we can just simply add an additional Elasticsearch configuration in app.conf file, same config is been shared below
input {
file {
start_position => "beginning"
path => "C:/Softwares/elk-demo/elk-demo/logs/spring.log"
sincedb_path => "NUL"
}
}
filter {
json {
source => "message"
}
}
output {
elasticsearch {
hosts => [http://localhost:9201]
index => "application_logs_1"
}
elasticsearch {
hosts => [http://localhost:9202]
index => "application_logs_2"
}
stdout {}
}
Question 1st:- can we write into two Elasticsearch cluster from one logstash, be updating and passing the same in config file of logstash?