# How to find events with duplicate field value?

**URL:** <https://discuss.elastic.co/t/how-to-find-events-with-duplicate-field-value/219219>\
**Category:** Kibana\
**Created:** [February 13, 2020, 1:57pm UTC](https://discuss.elastic.co/t/how-to-find-events-with-duplicate-field-value/219219 "2020-02-13T13:57:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@asp](https://discuss.elastic.co/u/asp)\
**Post date:** [February 13, 2020, 1:57pm UTC](https://discuss.elastic.co/t/how-to-find-events-with-duplicate-field-value/219219/1 "2020-02-13T13:57:09Z")

</div>

Hi,

I have events which contains a numeric field action.id.  
When I filter **action.id to be present** for these events and aggregate for **count** and **unique count** I get different values.

I understand it this way, that one or some action.ids have a count of more than one.  
Currently I am talking about 100,000 messages.

I need to retrieve all events, where the action.id occurs in more than one event.  
How do I do this?

Can I do it in kibana?

---

<div class="post-metadata">

**Author:** ![mikecote](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikecote/32/58549_2.png) [@mikecote](https://discuss.elastic.co/u/mikecote)\
**Post date:** [February 13, 2020, 8:53pm UTC](https://discuss.elastic.co/t/how-to-find-events-with-duplicate-field-value/219219/2 "2020-02-13T20:53:34Z")

</div>

You should be able to do so with `count` but you may have to set the JSON input to `{ “min_doc_count”: 2 }` in order to show values higher than 1. See example here [Retrieve duplicate data using Kibana search bar](https://discuss.elastic.co/t/retrieve-duplicate-data-using-kibana-search-bar/74229/2).

---

<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:** [March 12, 2020, 8:53pm UTC](https://discuss.elastic.co/t/how-to-find-events-with-duplicate-field-value/219219/3 "2020-03-12T20:53:41Z")

</div>

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