# The field you gave in the aggregation query existed as two different types in two different indices

**URL:** <https://discuss.elastic.co/t/the-field-you-gave-in-the-aggregation-query-existed-as-two-different-types-in-two-different-indices/193264>\
**Category:** Kibana\
**Created:** [August 1, 2019, 7:06am UTC](https://discuss.elastic.co/t/the-field-you-gave-in-the-aggregation-query-existed-as-two-different-types-in-two-different-indices/193264 "2019-08-01T07:06:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thirty2](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@thirty2](https://discuss.elastic.co/u/thirty2)\
**Post date:** [August 1, 2019, 7:06am UTC](https://discuss.elastic.co/t/the-field-you-gave-in-the-aggregation-query-existed-as-two-different-types-in-two-different-indices/193264/1 "2019-08-01T07:06:20Z")

</div>

Hi,

i have running **Netflow module** in ELK 7.2

and i am getting this error in Kibana when want to see data in Dashboard:

> [esaggs] \> Request to Elasticsearch failed: {"error":{"root\_cause":,"type":"search\_phase\_execution\_exception","reason":"","phase":"fetch","grouped":true,"failed\_shards":,"caused\_by":{"type":"aggregation\_execution\_exception","reason":"Merging/Reducing the aggregations failed when computing the aggregation [2] because the field you gave in the aggregation query existed as two different types in two different indices"}},"status":500}

How to find out which filed it is?

Thanks

---

<div class="post-metadata">

**Author:** ![joelgriffith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joelgriffith/32/53738_2.png) [@joelgriffith](https://discuss.elastic.co/u/joelgriffith)\
**Post date:** [August 7, 2019, 8:25pm UTC](https://discuss.elastic.co/t/the-field-you-gave-in-the-aggregation-query-existed-as-two-different-types-in-two-different-indices/193264/2 "2019-08-07T20:25:39Z")

</div>

> [@thirty2](#):
>
> Merging/Reducing the aggregations failed when computing the aggregation [2] because the field you gave in the aggregation query existed as two different types in two different indices

@thirty2 there's a good discussion of this in one of the older Kibana issues: [Unable to Aggregate on mismatched numeric field types · Issue #9430 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/9430), would some of the comments there help your issue?

---

<div class="post-metadata">

**Author:** ![thirty2](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@thirty2](https://discuss.elastic.co/u/thirty2)\
**Post date:** [August 8, 2019, 6:57am UTC](https://discuss.elastic.co/t/the-field-you-gave-in-the-aggregation-query-existed-as-two-different-types-in-two-different-indices/193264/3 "2019-08-08T06:57:09Z")

</div>

@joelgriffith i read it, but i do not see there any comments with steps how to fix it 😕 Is there any way how to via _search_ for example find out which field has two different types?

---

<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 5, 2019, 6:57am UTC](https://discuss.elastic.co/t/the-field-you-gave-in-the-aggregation-query-existed-as-two-different-types-in-two-different-indices/193264/4 "2019-09-05T06:57:09Z")

</div>

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