# Aggregate field with text type

**URL:** <https://discuss.elastic.co/t/aggregate-field-with-text-type/331119>\
**Category:** Elasticsearch\
**Created:** [April 29, 2023, 8:59am UTC](https://discuss.elastic.co/t/aggregate-field-with-text-type/331119 "2023-04-29T08:59:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indeed2000](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@Indeed2000](https://discuss.elastic.co/u/Indeed2000)\
**Post date:** [April 29, 2023, 8:59am UTC](https://discuss.elastic.co/t/aggregate-field-with-text-type/331119/1 "2023-04-29T08:59:55Z")

</div>

Hi  
i have two field in kibana "hostname" and "usage", when i add "usage" it will show area chart but when i add "hostname" as breakdown not show.

FYI1: hostname type are text and not aggregatable!  
FYI2: these field created by logstash(http\_poller) from influxdb.

Any idea?  
Thanks

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 30, 2023, 5:37pm UTC](https://discuss.elastic.co/t/aggregate-field-with-text-type/331119/2 "2023-04-30T17:37:31Z")

</div>

Can you show the mapping for the index?

From Kibana - Dev Tools

`GET indexname`

---

<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 28, 2023, 5:37pm UTC](https://discuss.elastic.co/t/aggregate-field-with-text-type/331119/3 "2023-05-28T17:37:43Z")

</div>

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