# How to avoid duplicate values in ealstic search 5.6.4

**URL:** <https://discuss.elastic.co/t/how-to-avoid-duplicate-values-in-ealstic-search-5-6-4/108976>\
**Category:** Elastic Training\
**Created:** [November 24, 2017, 6:58am UTC](https://discuss.elastic.co/t/how-to-avoid-duplicate-values-in-ealstic-search-5-6-4/108976 "2017-11-24T06:58:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![narasiman1986](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@narasiman1986](https://discuss.elastic.co/u/narasiman1986)\
**Post date:** [December 19, 2017, 5:21am UTC](https://discuss.elastic.co/t/how-to-avoid-duplicate-values-in-ealstic-search-5-6-4/108976/2 "2017-12-19T05:21:08Z")

</div>

want to delete the duplicates the below code is correct

the below code is written in the logstash file under config file.  
file type is conf file.

output {

elasticsearch {  
hosts =\> ["localhost:9200"]  
manage\_template =\> false  
index =\> "test" }  
stdout { codec =\> rubydebug }

document\_id =\> "%{[@metadata][\_mrdno]}"  
}

want to remove the duplicates of mrdno column.

please let me know

---

_[View the full topic](https://discuss.elastic.co/t/how-to-avoid-duplicate-values-in-ealstic-search-5-6-4/108976)._
