# Interface bandwidth calculation

**URL:** <https://discuss.elastic.co/t/interface-bandwidth-calculation/213742>\
**Category:** Kibana\
**Created:** [January 3, 2020, 7:33pm UTC](https://discuss.elastic.co/t/interface-bandwidth-calculation/213742 "2020-01-03T19:33:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Neely](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@Richard\_Neely](https://discuss.elastic.co/u/Richard_Neely)\
**Post date:** [January 3, 2020, 7:33pm UTC](https://discuss.elastic.co/t/interface-bandwidth-calculation/213742/1 "2020-01-03T19:33:06Z")

</div>

I'm using the logstash snmp plugin to get ifInOctect and ifOutOctect for all my interfaces. How can I create a scripted field to show the actual bandwidth of the interface from these numbers?

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [January 3, 2020, 11:29pm UTC](https://discuss.elastic.co/t/interface-bandwidth-calculation/213742/2 "2020-01-03T23:29:44Z")

</div>

Hello,

I am assuming you are indexing your documents in Elasticsearch and your data is coming in and you have an index pattern created in Kibana.

Time series visual builder lets you do the math calculations. Here is an example from metricbeat:

 ![Screen Shot 2020-01-03 at 6.33.44 PM](https://us1.discourse-cdn.com/elastic/original/3X/c/e/ce3ed5c432efb683769c0fe2e307a4f0f023921b.png)

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![Richard\_Neely](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@Richard\_Neely](https://discuss.elastic.co/u/Richard_Neely)\
**Post date:** [January 6, 2020, 6:05pm UTC](https://discuss.elastic.co/t/interface-bandwidth-calculation/213742/3 "2020-01-06T18:05:53Z")

</div>

To an extent yes, but that's not what I want. If you try to look at anything over 30 days you get an error because max buckets have been exceeded in doing the calculation. I'd like to be able to calculate the bandwidth and store it in the document.

---

<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 3, 2020, 6:13pm UTC](https://discuss.elastic.co/t/interface-bandwidth-calculation/213742/4 "2020-02-03T18:13:38Z")

</div>

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