# Kibana Viz can't filter 1 from 11,12,13; 2 from 21,22, etc

**URL:** <https://discuss.elastic.co/t/kibana-viz-cant-filter-1-from-11-12-13-2-from-21-22-etc/193884>\
**Category:** Kibana\
**Created:** [August 5, 2019, 8:28pm UTC](https://discuss.elastic.co/t/kibana-viz-cant-filter-1-from-11-12-13-2-from-21-22-etc/193884 "2019-08-05T20:28:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnwobu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dnwobu/32/43517_2.png) [@dnwobu](https://discuss.elastic.co/u/dnwobu)\
**Post date:** [August 5, 2019, 8:28pm UTC](https://discuss.elastic.co/t/kibana-viz-cant-filter-1-from-11-12-13-2-from-21-22-etc/193884/1 "2019-08-05T20:28:33Z")

</div>

I have a vizualization that is a line graph of cpu usage by core. If I select core 38 from the legend, the viz shows values for 38 and 3. Is this a bug, a symptom of metricbeat setting core id as strings, or is there a setting that can fix this?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/8/484bfe3cd9cd6016721510fd458739d8f4c1629f.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/5/855c05eec975d2b058e54f3fd91e89d996e1e6ab.png)

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [August 5, 2019, 10:00pm UTC](https://discuss.elastic.co/t/kibana-viz-cant-filter-1-from-11-12-13-2-from-21-22-etc/193884/2 "2019-08-05T22:00:21Z")

</div>

Yeah it looks like it's a symptom of the core id being a string. The search string is matching on the substring - can you check that metricbeat has a template loaded and if not add it?

[https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-template.html](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-template.html) has a guide for getting it setup

---

<div class="post-metadata">

**Author:** ![dnwobu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dnwobu/32/43517_2.png) [@dnwobu](https://discuss.elastic.co/u/dnwobu)\
**Post date:** [August 14, 2019, 9:44pm UTC](https://discuss.elastic.co/t/kibana-viz-cant-filter-1-from-11-12-13-2-from-21-22-etc/193884/3 "2019-08-14T21:44:15Z")

</div>

The template sees core.id as a number.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/4/b4a6e44b84c8e6cd56f276091a70c04e5630035b.png)

In my viz I am grouping by term core.id. Does grouping by term automatically treat the value as a string?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/b/ab9b07ee999cc0693cd3db8e4b65452ae4741c7f.png)

---

<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:** [September 11, 2019, 9:44pm UTC](https://discuss.elastic.co/t/kibana-viz-cant-filter-1-from-11-12-13-2-from-21-22-etc/193884/4 "2019-09-11T21:44:21Z")

</div>

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