# \[SOLVED\] Doing conversion byte to mega byte with logstash

**URL:** <https://discuss.elastic.co/t/solved-doing-conversion-byte-to-mega-byte-with-logstash/54002>\
**Category:** Logstash\
**Created:** [June 27, 2016, 7:12am UTC](https://discuss.elastic.co/t/solved-doing-conversion-byte-to-mega-byte-with-logstash/54002 "2016-06-27T07:12:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Alex\_Lum](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_lum/32/84472_2.png) [@Alex\_Lum](https://discuss.elastic.co/u/Alex_Lum)\
**Post date:** [June 29, 2016, 3:09pm UTC](https://discuss.elastic.co/t/solved-doing-conversion-byte-to-mega-byte-with-logstash/54002/4 "2016-06-29T15:09:41Z")

</div>

Hello,  
I've used this :

> [@Kibana dashboard for Interface Traffic analysis](https://discuss.elastic.co/t/kibana-dashboard-for-interface-traffic-analysis/26204/9):
>
> Sure - If your bytes field is called "IN\_BYTES", you can use the following script: doc['IN\_BYTES'].value\*8 Some screenshots below from my environment (my bytes field is called 'bytes')

Thank you for help 🙂

---

_[View the full topic](https://discuss.elastic.co/t/solved-doing-conversion-byte-to-mega-byte-with-logstash/54002)._
