# How to translate the format from byte to MB/GB in Metricbeat?

**URL:** <https://discuss.elastic.co/t/how-to-translate-the-format-from-byte-to-mb-gb-in-metricbeat/68388>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [December 8, 2016, 2:20am UTC](https://discuss.elastic.co/t/how-to-translate-the-format-from-byte-to-mb-gb-in-metricbeat/68388 "2016-12-08T02:20:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sitanxin](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@sitanxin](https://discuss.elastic.co/u/sitanxin)\
**Post date:** [December 8, 2016, 2:20am UTC](https://discuss.elastic.co/t/how-to-translate-the-format-from-byte-to-mb-gb-in-metricbeat/68388/1 "2016-12-08T02:20:31Z")

</div>

Hi All,

In metricbeat, we find there are too many byte format data. But we hope to display it in MB or GB, since the byte is too long and not good to show. Do you have any idea we should do?

E.g.:  
system.memory.swap.used.bytesedit  
type: long  
format: bytes  
Used swap memory.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 8, 2016, 2:48am UTC](https://discuss.elastic.co/t/how-to-translate-the-format-from-byte-to-mb-gb-in-metricbeat/68388/2 "2016-12-08T02:48:41Z")

</div>

You should do that in Kibana instead.

---

<div class="post-metadata">

**Author:** ![sitanxin](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@sitanxin](https://discuss.elastic.co/u/sitanxin)\
**Post date:** [December 8, 2016, 2:50am UTC](https://discuss.elastic.co/t/how-to-translate-the-format-from-byte-to-mb-gb-in-metricbeat/68388/3 "2016-12-08T02:50:25Z")

</div>

Hi, In kibana, we already use the script field to do so. And it works fine. But we hope the same thing in the watcher alert mail. The setting in Kibana can't be shown in Watcher.

---

<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:** [January 5, 2017, 2:51am UTC](https://discuss.elastic.co/t/how-to-translate-the-format-from-byte-to-mb-gb-in-metricbeat/68388/4 "2017-01-05T02:51:01Z")

</div>

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