# Finding total latency(round trip time or response time) per flow?

**URL:** <https://discuss.elastic.co/t/finding-total-latency-round-trip-time-or-response-time-per-flow/154971>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [November 1, 2018, 7:14am UTC](https://discuss.elastic.co/t/finding-total-latency-round-trip-time-or-response-time-per-flow/154971 "2018-11-01T07:14:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sohaibomr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sohaibomr/32/37574_2.png) [@sohaibomr](https://discuss.elastic.co/u/sohaibomr)\
**Post date:** [November 1, 2018, 7:14am UTC](https://discuss.elastic.co/t/finding-total-latency-round-trip-time-or-response-time-per-flow/154971/1 "2018-11-01T07:14:16Z")

</div>

Hey all,  
I am using packet beat to build a network flows monitoring application, I need to find average latency rate for each flow. I wanted to ask if this is possible with current fields exported by packetbeat or If not can I please know the reason why latency per flow is not maintained by packetbeat?

I know that packetbeat does export response time time for each network transaction but, I could not find a way to group transactions by flow.

Thanks

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [November 1, 2018, 5:23pm UTC](https://discuss.elastic.co/t/finding-total-latency-round-trip-time-or-response-time-per-flow/154971/2 "2018-11-01T17:23:07Z")

</div>

@sohaibomr have you tried to calculate this by using Elasticsearch aggregations?

---

<div class="post-metadata">

**Author:** ![sohaibomr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sohaibomr/32/37574_2.png) [@sohaibomr](https://discuss.elastic.co/u/sohaibomr)\
**Post date:** [November 1, 2018, 6:05pm UTC](https://discuss.elastic.co/t/finding-total-latency-round-trip-time-or-response-time-per-flow/154971/3 "2018-11-01T18:05:34Z")

</div>

Elasticsearch aggregation is not the issue here, thing is responsetime is not stored for type:flow, it is only stored for types http, dns, tls etc. And I need to find responsetime for each unique flow\_id.  
Is there any field which I can use to group responsetime by flow\_id?

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [November 2, 2018, 9:36am UTC](https://discuss.elastic.co/t/finding-total-latency-round-trip-time-or-response-time-per-flow/154971/4 "2018-11-02T09:36:15Z")

</div>

Hi,

`responsetime` only makes sense in transaction protocols. It means how long takes one end (usually the "server" side of the protocol) to process the request and deliver a response.

Regarding flows, it is not possible to apply the concept of `responsetime` as there is no knowledge of the underlying protocol, so no transactions and no knowledge of the role played by each endpoint of the flow.

---

<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:** [November 30, 2018, 9:36am UTC](https://discuss.elastic.co/t/finding-total-latency-round-trip-time-or-response-time-per-flow/154971/5 "2018-11-30T09:36:21Z")

</div>

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