# Add mapping for keyword on http.url for aggregation

**URL:** <https://discuss.elastic.co/t/add-mapping-for-keyword-on-http-url-for-aggregation/89435>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [June 14, 2017, 6:30pm UTC](https://discuss.elastic.co/t/add-mapping-for-keyword-on-http-url-for-aggregation/89435 "2017-06-14T18:30:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lowlevelio](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lowlevelio](https://discuss.elastic.co/u/lowlevelio)\
**Post date:** [June 14, 2017, 6:30pm UTC](https://discuss.elastic.co/t/add-mapping-for-keyword-on-http-url-for-aggregation/89435/1 "2017-06-14T18:30:14Z")

</div>

Could you please add a keyword field on the http.url mapping to be able to aggregate the url field, because it's currently only text which cannot be aggregated. Most, if not all, text field other beat agent have also has an additional keyword field to be able to aggregate on the field.

I want to be able to "group by" the urls all my heartbeat agents monitor.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [June 15, 2017, 10:10am UTC](https://discuss.elastic.co/t/add-mapping-for-keyword-on-http-url-for-aggregation/89435/2 "2017-06-15T10:10:03Z")

</div>

I see it's set to `text` in master: [https://github.com/elastic/beats/blob/master/heartbeat/monitors/active/http/\_meta/fields.yml#L11](https://github.com/elastic/beats/blob/master/heartbeat/monitors/active/http/_meta/fields.yml#L11)

Feel free to open a bug report or a PR fixing it.

---

<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:** [July 13, 2017, 10:10am UTC](https://discuss.elastic.co/t/add-mapping-for-keyword-on-http-url-for-aggregation/89435/3 "2017-07-13T10:10:30Z")

</div>

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