# Create graph showing duration between log lines

**URL:** <https://discuss.elastic.co/t/create-graph-showing-duration-between-log-lines/240987>\
**Category:** Kibana\
**Created:** [July 13, 2020, 1:59pm UTC](https://discuss.elastic.co/t/create-graph-showing-duration-between-log-lines/240987 "2020-07-13T13:59:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scuba\_fly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scuba_fly/32/72045_2.png) [@scuba\_fly](https://discuss.elastic.co/u/scuba_fly)\
**Post date:** [July 13, 2020, 1:59pm UTC](https://discuss.elastic.co/t/create-graph-showing-duration-between-log-lines/240987/1 "2020-07-13T13:59:48Z")

</div>

Having log lines like:  
`id: 123 message: start processing @timestamp: Jul 7, 2020 @ 02:10:02.866`  
`id: 123 message: finished processing @timestamp: Jul 7, 2020 @ 02:12:02.866`

So I want to make a graph where I display the proccessing time. ( 2 minutes ) in this case.  
Any why I can do this with Kibana?

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [July 13, 2020, 4:02pm UTC](https://discuss.elastic.co/t/create-graph-showing-duration-between-log-lines/240987/2 "2020-07-13T16:02:23Z")

</div>

That's a particular problem, not possible for Kibana with how your data is indexed.

You would need to index the data where the start-and finish are a single document, with the time-difference being a single value, and a single `id` field.

I would create an ER here, as I feel like this question comes up occasionally: [https://github.com/elastic/kibana/issues/new](https://github.com/elastic/kibana/issues/new)

---

<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:** [August 10, 2020, 4:02pm UTC](https://discuss.elastic.co/t/create-graph-showing-duration-between-log-lines/240987/3 "2020-08-10T16:02:26Z")

</div>

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