# Not able to filter by APM labels

**URL:** <https://discuss.elastic.co/t/not-able-to-filter-by-apm-labels/201720>\
**Category:** Kibana\
**Created:** [October 1, 2019, 3:35am UTC](https://discuss.elastic.co/t/not-able-to-filter-by-apm-labels/201720 "2019-10-01T03:35:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivachandran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sivachandran/32/55150_2.png) [@sivachandran](https://discuss.elastic.co/u/sivachandran)\
**Post date:** [October 1, 2019, 3:35am UTC](https://discuss.elastic.co/t/not-able-to-filter-by-apm-labels/201720/1 "2019-10-01T03:35:02Z")

</div>

My application is sending custom metric as APM label fields. I can see these fields as `labels.{field-name}` in Discover page. But I couldn't neither filter by these fields nor create visualisation on this. How can I use them in filtering and visualisation?

I'm using Elastic Cloud 7.3.

---

<div class="post-metadata">

**Author:** ![sivachandran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sivachandran/32/55150_2.png) [@sivachandran](https://discuss.elastic.co/u/sivachandran)\
**Post date:** [October 17, 2019, 12:43pm UTC](https://discuss.elastic.co/t/not-able-to-filter-by-apm-labels/201720/2 "2019-10-17T12:43:40Z")

</div>

Answering my own question.

The fields were not listed as their type was string(default type of label fields). The aggregation I was trying to use required int/float types. I have to create custom mapping for the fields in the index template and re-populate the data to use them in the visualisation aggregation.

---

<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:** [November 14, 2019, 12:43pm UTC](https://discuss.elastic.co/t/not-able-to-filter-by-apm-labels/201720/3 "2019-11-14T12:43:56Z")

</div>

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