# 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:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Exocomp](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Exocomp](https://discuss.elastic.co/u/Exocomp)\
**Post date:** [February 28, 2017, 6:06pm UTC](https://discuss.elastic.co/t/network-bytes-per-second-example/76845/1 "2017-02-28T18:06:03Z")

</div>

The "system.network.out.bytes" metric gives you the total bytes, can someone give me a Timelion expression using derivative to show bytes per second.

Thanks,  
E

---

<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) …

---

<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:** [March 28, 2017, 8:13pm UTC](https://discuss.elastic.co/t/network-bytes-per-second-example/76845/3 "2017-03-28T20:13:35Z")

</div>

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