# Why is the type of system.cpu.total.norm.pct is long?

**URL:** <https://discuss.elastic.co/t/why-is-the-type-of-system-cpu-total-norm-pct-is-long/116241>\
**Category:** Beats\
**Created:** [January 19, 2018, 1:16pm UTC](https://discuss.elastic.co/t/why-is-the-type-of-system-cpu-total-norm-pct-is-long/116241 "2018-01-19T13:16:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HelloUniverse](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@HelloUniverse](https://discuss.elastic.co/u/HelloUniverse)\
**Post date:** [January 19, 2018, 1:16pm UTC](https://discuss.elastic.co/t/why-is-the-type-of-system-cpu-total-norm-pct-is-long/116241/1 "2018-01-19T13:16:22Z")

</div>

I used metricbeat to fetch cpu& process cpu metrics to elasticsearch.

When trying to get the system.cpu.total.norm.pct usage by aggregation, it always get 0.

I typed the query in kibana and found that within the tips that its type is long.  
Why long not float?

---

<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:** [January 19, 2018, 7:27pm UTC](https://discuss.elastic.co/t/why-is-the-type-of-system-cpu-total-norm-pct-is-long/116241/2 "2018-01-19T19:27:53Z")

</div>

Which version of metricbeat, kibana, logstash, elasticsearch are you using?

How did you configure the template setup in Elasticsearch?

[According to this](https://github.com/elastic/beats/blob/master/metricbeat/module/system/process/_meta/fields.yml#L63) metricbeat is using `scaled_float`.

---

<div class="post-metadata">

**Author:** ![HelloUniverse](https://avatars.discourse-cdn.com/v4/letter/h/a3d4f5/32.png) [@HelloUniverse](https://discuss.elastic.co/u/HelloUniverse)\
**Post date:** [January 20, 2018, 2:07am UTC](https://discuss.elastic.co/t/why-is-the-type-of-system-cpu-total-norm-pct-is-long/116241/3 "2018-01-20T02:07:03Z")

</div>

Hi @steffens,

Thank you very much. It's proved that the error caused by wrong template.  
I loaded the template manually and new data. Then came the right result.

Thanks again.

Regards

---

<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:** [February 9, 2018, 1:16pm UTC](https://discuss.elastic.co/t/why-is-the-type-of-system-cpu-total-norm-pct-is-long/116241/4 "2018-02-09T13:16:31Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
