This configuration:
type => "%{type}"
...will not work in an input block.
If field type is in with _id and _rev, that field is, quite likely, in the @metadata field as [@metadata][type]. If so, you'd need to overwrite the Logstash event's type with a mutate replace:
mutate {
replace => { "type" => "%{[@metadata][type]}" }
}