# Kiabana graph for total count

**URL:** <https://discuss.elastic.co/t/kiabana-graph-for-total-count/27821>\
**Category:** Kibana\
**Created:** [August 21, 2015, 8:05am UTC](https://discuss.elastic.co/t/kiabana-graph-for-total-count/27821 "2015-08-21T08:05:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sar82](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@Sar82](https://discuss.elastic.co/u/Sar82)\
**Post date:** [August 21, 2015, 8:05am UTC](https://discuss.elastic.co/t/kiabana-graph-for-total-count/27821/1 "2015-08-21T08:05:18Z")

</div>

Hello, I want to create a graph for following sample input,

Date, Name (can be TCP/UDP or any other), Packets In, Packets Out

This graph will show network throughput of TCP packets, UDP packets and total of TCP and UDP packets.

I am able to create it for TCP and UDP packets. Please refer screenshot.  
How to add Total Network Throughput in the graph?

Note: For Network Throughput I have created scripted field in the index.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/6/674fa9526700bd49c69b163d6bdba4425a51af99.png)

Here is graph object json

{  
"index": "trae-stat",  
"query": {  
"query\_string": {  
"query": "name:(udp|tcp)",  
"analyze\_wildcard": true  
}  
},  
"filter":   
}

{  
"type": "line",  
"params": {  
"shareYAxis": true,  
"addTooltip": true,  
"addLegend": true,  
"showCircles": true,  
"smoothLines": false,  
"interpolate": "linear",  
"scale": "linear",  
"drawLinesBetweenPoints": true,  
"radiusRatio": 9,  
"times": ,  
"addTimeMarker": false,  
"defaultYExtents": false,  
"setYExtents": false,  
"yAxis": {}  
},  
"aggs": [  
{  
"id": "1",  
"type": "sum",  
"schema": "metric",  
"params": {  
"field": "nw\_thrput"  
}  
},  
{  
"id": "2",  
"type": "date\_histogram",  
"schema": "segment",  
"params": {  
"field": "@timestamp",  
"interval": "s",  
"customInterval": "2h",  
"min\_doc\_count": 1,  
"extended\_bounds": {}  
}  
},  
{  
"id": "3",  
"type": "terms",  
"schema": "group",  
"params": {  
"field": "name",  
"size": 5,  
"order": "desc",  
"orderBy": "1"  
}  
}  
],  
"listeners": {}  
}

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [August 22, 2015, 12:03am UTC](https://discuss.elastic.co/t/kiabana-graph-for-total-count/27821/2 "2015-08-22T00:03:06Z")

</div>

You should be able to click "Add Metrics" under the Y-Axis config and add another metric

 ![](https://us1.discourse-cdn.com/elastic/original/2X/6/637ec3dc1b9953263290ffde449eddc0402fb01f.png)

---

<div class="post-metadata">

**Author:** ![Sar82](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@Sar82](https://discuss.elastic.co/u/Sar82)\
**Post date:** [August 24, 2015, 4:34am UTC](https://discuss.elastic.co/t/kiabana-graph-for-total-count/27821/3 "2015-08-24T04:34:27Z")

</div>

So I did that. But problem is, term gets applied to all matrices on Y axis. Like in your snap shot **bytes** and **response** fields are **grouped by verb.raw** field. Instead of this I want to create graph something like,

1. bytes field grouped by verb.raw
2. response field as it is. Without grouping.

So my legend(or data plotted) will be ,

1. GET : Average bytes
2. HEAD : Average bytes
3. POST : Average bytes
4. OPTIONS : Average bytes
5. **Average response**

Is it possible?

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [August 25, 2015, 3:54am UTC](https://discuss.elastic.co/t/kiabana-graph-for-total-count/27821/4 "2015-08-25T03:54:55Z")

</div>

Gotcha. No, that's not currently possible - interesting suggestion though, please feel free to add to Github:

> **[elastic/kibana](https://github.com/elastic/kibana/issues)**
>
> :bar\_chart: Kibana analytics and search dashboard for Elasticsearch - elastic/kibana

For now, you could consider adding another dimension for #5 though, such as Dot Size in Line Charts (see screenshot). Your other option is to simply plot these on separate charts but put them side-by-side on a dashboard.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/3/3cbcf73211124c5c883dd8764abc8f80312f9998.png)

---

<div class="post-metadata">

**Author:** ![Sar82](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@Sar82](https://discuss.elastic.co/u/Sar82)\
**Post date:** [August 25, 2015, 4:50am UTC](https://discuss.elastic.co/t/kiabana-graph-for-total-count/27821/5 "2015-08-25T04:50:02Z")

</div>

Sure Tanya I will try out above suggestions and will raise this issue in Github.

I would like to know next release date of Kibana.

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [August 25, 2015, 5:03am UTC](https://discuss.elastic.co/t/kiabana-graph-for-total-count/27821/6 "2015-08-25T05:03:58Z")

</div>

Since Kibana 4.2 is targeted at compatibility with Elasticsearch 2.0, the release timeline will coincide with Elasticsearch 2.0 GA, which is still pending. However, I would expect the beta software for both releases to be available within the next couple of weeks.

---

<div class="post-metadata">

**Author:** ![Sar82](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@Sar82](https://discuss.elastic.co/u/Sar82)\
**Post date:** [August 25, 2015, 12:36pm UTC](https://discuss.elastic.co/t/kiabana-graph-for-total-count/27821/7 "2015-08-25T12:36:25Z")

</div>

Thanks for the update.

---

<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:** [July 6, 2017, 2:08pm UTC](https://discuss.elastic.co/t/kiabana-graph-for-total-count/27821/9 "2017-07-06T14:08:46Z")

</div>


