# Network bytes per second example

**URL:** <https://discuss.elastic.co/t/network-bytes-per-second-example/76845>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [February 28, 2017, 6:06pm UTC](https://discuss.elastic.co/t/network-bytes-per-second-example/76845 "2017-02-28T18:06:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jkuang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkuang/32/72637_2.png) [@jkuang](https://discuss.elastic.co/u/jkuang)\
**Post date:** [February 28, 2017, 8:13pm UTC](https://discuss.elastic.co/t/network-bytes-per-second-example/76845/2 "2017-02-28T20:13:30Z")

</div>

This should answer your question:

> [@Timelion / how to get a number of bytes per second](https://discuss.elastic.co/t/timelion-how-to-get-a-number-of-bytes-per-second/55986):
>
> Hello, I want to display a number of bytes par second by using TIMELION. My query is based on a ElasticSearch datasource. When I use the .derivative() function I will have : CURRENT VALUE - PREVIOUS VALUE. To have a number per second I must divide this result by the interval used to get the values. The problem is that the user can change the interval. Is there a way to get this value in the TIMELION expression input ? For example the following query .es('my\_query').derivative().divide(5) …

---

_[View the full topic](https://discuss.elastic.co/t/network-bytes-per-second-example/76845)._
