# Dedup Help!

**URL:** <https://discuss.elastic.co/t/dedup-help/196823>\
**Category:** Elasticsearch\
**Created:** [August 26, 2019, 6:49pm UTC](https://discuss.elastic.co/t/dedup-help/196823 "2019-08-26T18:49:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cchooks2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cchooks2/32/21987_2.png) [@cchooks2](https://discuss.elastic.co/u/cchooks2)\
**Post date:** [August 26, 2019, 6:49pm UTC](https://discuss.elastic.co/t/dedup-help/196823/1 "2019-08-26T18:49:26Z")

</div>

Hello All,

I am attempting to use DEDUP command in Kibana, via the Query DSL.

```auto
{
  "exists": {
    "field": "TSID"
  },
  "dedup": true
}

```

Getting this error:

Discover: [parsing\_exception] [exists] malformed query, expected [END\_OBJECT] but found [FIELD\_NAME], with { line=1 & col=537 }

I just want to remove the duplicates out of that field. Is there an easy way of accomplishing this?

Thank You!

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 28, 2019, 11:25am UTC](https://discuss.elastic.co/t/dedup-help/196823/2 "2019-08-28T11:25:25Z")

</div>

I am confused here, with regards to the `dedup` field. Where do you have that `dedup` from? Is it mentioned in the docs in Elasticsearch?

Maybe you can explain your use-case a bit more broad and mention how your data looks like, and what the definition of a duplicate is.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 25, 2019, 11:25am UTC](https://discuss.elastic.co/t/dedup-help/196823/3 "2019-09-25T11:25:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
