# Display bytes per second in Line viz

**URL:** <https://discuss.elastic.co/t/display-bytes-per-second-in-line-viz/254004>\
**Category:** Kibana\
**Created:** [November 2, 2020, 9:44am UTC](https://discuss.elastic.co/t/display-bytes-per-second-in-line-viz/254004 "2020-11-02T09:44:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenoitSERRA](https://avatars.discourse-cdn.com/v4/letter/b/5fc32e/32.png) [@BenoitSERRA](https://discuss.elastic.co/u/BenoitSERRA)\
**Post date:** [November 2, 2020, 9:44am UTC](https://discuss.elastic.co/t/display-bytes-per-second-in-line-viz/254004/1 "2020-11-02T09:44:38Z")

</div>

Hello,

with the lockdown, I'm currently working on a dashboard to sum up the throughput on our remote connection systems.

I've created a custom script as such :

```auto
{ "script" : "doc['Bytes'].value / 60" }

```

and forced the histogram value to "minute".

I want to have a divider related to the duration of the bucket, but I don't know how to to this.

Is there a way ?

Thanks for your answer.

---

<div class="post-metadata">

**Author:** ![majagrubic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majagrubic/32/74459_2.png) [@majagrubic](https://discuss.elastic.co/u/majagrubic)\
**Post date:** [November 2, 2020, 11:39am UTC](https://discuss.elastic.co/t/display-bytes-per-second-in-line-viz/254004/2 "2020-11-02T11:39:09Z")

</div>

Hi, could you give a bit more information on what you're trying to do? I don't understand why you need a custom divider at all.

---

<div class="post-metadata">

**Author:** ![BenoitSERRA](https://avatars.discourse-cdn.com/v4/letter/b/5fc32e/32.png) [@BenoitSERRA](https://discuss.elastic.co/u/BenoitSERRA)\
**Post date:** [November 2, 2020, 2:07pm UTC](https://discuss.elastic.co/t/display-bytes-per-second-in-line-viz/254004/3 "2020-11-02T14:07:47Z")

</div>

Indeed, my message was not very clear. And now I've changed the way I'm loading the data so I'll try to explain myself.

I'm using logstash to query my border firewall throught snmp and get the details about all its interfaces.

l'm loading the datas into an elasticsearch index.

I've created a Line viz to display the data, using the Serial Diff Aggregation :

 ![2020-11-02 15_05_36-Palo Alto -- Debit BVPN - Elastic](https://us1.discourse-cdn.com/elastic/original/3X/7/d/7d9c2f04c28f8852071ce8bebc22815fce3e6df6.png)

Now I want to convert the data to bits per second, if there is a way to do so.

---

<div class="post-metadata">

**Author:** ![BenoitSERRA](https://avatars.discourse-cdn.com/v4/letter/b/5fc32e/32.png) [@BenoitSERRA](https://discuss.elastic.co/u/BenoitSERRA)\
**Post date:** [November 11, 2020, 1:40pm UTC](https://discuss.elastic.co/t/display-bytes-per-second-in-line-viz/254004/4 "2020-11-11T13:40:21Z")

</div>

I've found a way to have the viz I want :

 ![2020-11-11 14_38_23-Débit Internet - Elastic](https://us1.discourse-cdn.com/elastic/original/3X/5/2/52120ca1a438e2ae0999c55e5fb32ba0c7604c7f.png)

So now I have the visualization I want.

Thanks for help 🙂

---

<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:** [December 9, 2020, 1:40pm UTC](https://discuss.elastic.co/t/display-bytes-per-second-in-line-viz/254004/5 "2020-12-09T13:40:24Z")

</div>

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