# Convert Long to Strings

**URL:** <https://discuss.elastic.co/t/convert-long-to-strings/278831>\
**Category:** Elasticsearch\
**Created:** [July 15, 2021, 7:46pm UTC](https://discuss.elastic.co/t/convert-long-to-strings/278831 "2021-07-15T19:46:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![valleram](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/valleram/32/48248_2.png) [@valleram](https://discuss.elastic.co/u/valleram)\
**Post date:** [July 15, 2021, 7:46pm UTC](https://discuss.elastic.co/t/convert-long-to-strings/278831/1 "2021-07-15T19:46:54Z")

</div>

Hi There,

I have a field of type Long (i.e 4,277,534,720 ) which is a representation of memory heap usage in bytes, of one application.

I've created a visualization using this field, but I need to convert that field in something more human readable like **4.27 Gb** or **4, 277.53 Mb.**. Please see the visualization below.

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

Any help will be much appreciate it

Thank You

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [July 15, 2021, 10:28pm UTC](https://discuss.elastic.co/t/convert-long-to-strings/278831/2 "2021-07-15T22:28:03Z")

</div>

Hi @valleram  
You should be able to go into the index pattern and define the format. That will turn it into Automatically Scaled Human Readable

 ![Screen Shot 2021-07-15 at 3.27.00 PM](https://us1.discourse-cdn.com/elastic/original/3X/8/e/8e883f89fed2fafcbb568843a09e4f68dca20baa.png)

 ![Screen Shot 2021-07-15 at 3.25.09 PM](https://us1.discourse-cdn.com/elastic/original/3X/e/2/e24b87079b6848a62fd87af919a18fcc17d8ee7e.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:** [August 12, 2021, 10:28pm UTC](https://discuss.elastic.co/t/convert-long-to-strings/278831/3 "2021-08-12T22:28:07Z")

</div>

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