Hello experts,
I am re-indexing data using Logstash 2.3.3 from ES 1.4.4 to ES 2.4.0. I have 70000 doc type in my old index and 14000 doc type has been re-indexed in ES 2.4.0 but due to some error Logstash crashed.
My question is
- How to start from where log stash stopped working ?
- Is there any way to re-index only doc type that not re-index?
My Logstash configuration
input {
elasticsearch {
hosts => "ip:9200" #source 1.4.4
index => "myidex"
query => '{ "query": { "match_all": {} } }'
scroll => "20m"
docinfo => true
}
}
filter {
mutate{
remove_field => ["@version","@timestamp"]
}
}
output {
elasticsearch {
hosts => "ip:9200" # target 2.4.0
index => "%{[@metadata][_index]}"
document_type => "%{[@metadata][_type]}"
document_id => "%{[@metadata][_id]}"
}
}