# \_id field not aggregatable after Elastic migration to 8.6.2

**URL:** <https://discuss.elastic.co/t/id-field-not-aggregatable-after-elastic-migration-to-8-6-2/329490>\
**Category:** Kibana\
**Created:** [April 6, 2023, 7:55am UTC](https://discuss.elastic.co/t/id-field-not-aggregatable-after-elastic-migration-to-8-6-2/329490 "2023-04-06T07:55:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)\
**Post date:** [April 6, 2023, 7:55am UTC](https://discuss.elastic.co/t/id-field-not-aggregatable-after-elastic-migration-to-8-6-2/329490/1 "2023-04-06T07:55:58Z")

</div>

Hi all,

I migrated my Elastic & kibana versions from 7.9 to 7.17 to 8.6.2.

I continued to use same dashboards and data.

But in new ES version, I'm getting below issue for \_id field.

 ![Screenshot 2023-04-06 at 1.21.37 PM](https://us1.discourse-cdn.com/elastic/original/3X/f/8/f882411a33d1082e71f0d8580879c30455d709b4.png)

I noticed that in old version, \_id was mapped as string , but in latest version it is mapped as "\_id". In old version, I was able to aggregate on \_id field.

Any solution for this because I want to use & aggregate with \_id field.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [April 15, 2023, 4:59am UTC](https://discuss.elastic.co/t/id-field-not-aggregatable-after-elastic-migration-to-8-6-2/329490/2 "2023-04-15T04:59:53Z")

</div>

The \_id field usage was restricted, but there is a solution.You can duplicate the field into another one that has doc\_values enabled: [\_id field | Elasticsearch Guide [8.7] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-id-field.html)

---

<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:** [May 13, 2023, 5:00am UTC](https://discuss.elastic.co/t/id-field-not-aggregatable-after-elastic-migration-to-8-6-2/329490/3 "2023-05-13T05:00:17Z")

</div>

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