Couldnt find the answer on here or google, so here i am asking....
i want to use logstash to transfer data from one elasticsearch to another, but i cant move all the docs can only move the number spesified in the "size" parameter:
input {
# Read all documents from Elasticsearch matching the given query
elasticsearch {
hosts => "x.x.x.x"
index => "winlog-*"
#query => "*"
size => 5000
#scroll => "5m"
docinfo => true
}
}
output {
elasticsearch {
#index => "copy-of-prod.%{[@metadata][_index]}"
index => "test"
document_id => "%{[@metadata][_id]}"
}
}
looking at the cluster during this code is running i see the "docs.count" maxed at 5000 and the "docs.deleted" change
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open test RNUXxuoIQrWKbjbsDTqZUw 5 1 5000 993 17.3mb 17.3mb
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open test RNUXxuoIQrWKbjbsDTqZUw 5 1 5000 1037 17.3mb 17.3mb
I know i can use _reindex & elasticdump ... (looking into those), but wanted to understand what my mistake is
all elk sets are 5.4.0 one on centos7 other on RH7
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.