Duplicate Records in Kibana

Hi, I am getting duplicate records in Kibana. I am using the below config in logstash. But in the kibana it showing the _id value as %{[@metadata][fingerprint]}

Please provide the solution to this.
Logstash.conf

filter {
fingerprint {
source => "message"
target => "[@metadata][fingerprint]"
method => "MURMUR3"
}
}
output {
elasticsearch {
hosts => "example.com"
document_id => "%{[@metadata][fingerprint]}"
}
}