# Aggregations don't work after upgrade (5.0 -\> 5.1)

**URL:** <https://discuss.elastic.co/t/aggregations-dont-work-after-upgrade-5-0-5-1/69325>\
**Category:** Elasticsearch\
**Created:** [December 16, 2016, 10:06pm UTC](https://discuss.elastic.co/t/aggregations-dont-work-after-upgrade-5-0-5-1/69325 "2016-12-16T22:06:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason26](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jason26/32/54948_2.png) [@jason26](https://discuss.elastic.co/u/jason26)\
**Post date:** [December 16, 2016, 10:06pm UTC](https://discuss.elastic.co/t/aggregations-dont-work-after-upgrade-5-0-5-1/69325/1 "2016-12-16T22:06:28Z")

</div>

I have a pretty basic Logstash setup putting events into Elastic Search with an index per day. The data being added is already in JSON (Suricata EVE). I don't think it gets a whole lot more basic than this.

I just upgraded from 5.0 to 5.1 and then any query using an aggregation (I use term aggregations) do not return any results. If I delete todays index and restart logstash so the index gets recreated I can then again do aggregations.

Is this expected?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [December 16, 2016, 10:24pm UTC](https://discuss.elastic.co/t/aggregations-dont-work-after-upgrade-5-0-5-1/69325/2 "2016-12-16T22:24:57Z")

</div>

No, it isn't expected.

Do the aggregations just never return? Do you get shard errors? Is there anything in the logs? Do the mappings look particularly different for the different days?

---

<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:** [January 13, 2017, 10:25pm UTC](https://discuss.elastic.co/t/aggregations-dont-work-after-upgrade-5-0-5-1/69325/3 "2017-01-13T22:25:01Z")

</div>

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