# EQL Sequence and elapsed time calculation

**URL:** https://discuss.elastic.co/t/eql-sequence-and-elapsed-time-calculation/288101
**Category:** Elasticsearch
**Tags:** eql-elastic-query-language
**Created:** [October 31, 2021, 8:52pm UTC](https://discuss.elastic.co/t/eql-sequence-and-elapsed-time-calculation/288101 "2021-10-31T20:52:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Iriana\_Arguedas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iriana_arguedas/32/96574_2.png) [@Iriana\_Arguedas](https://discuss.elastic.co/u/Iriana_Arguedas)
#### Post date: [October 31, 2021, 8:52pm UTC](https://discuss.elastic.co/t/eql-sequence-and-elapsed-time-calculation/288101/1 "2021-10-31T20:52:11Z")

</div>

With EQL is easy to identify when a process was executed/started and when it did finish.  
Is there a way to calculate the elapsed time of the execution inside the EQL query?

Or is it better to use an external tool to process the response and perform those calculations? Is there another feature that could be used in this use case, like watchers or metric aggregations? Data volume is very big, millions of entries, but very small doc size.

---

<div class="post-metadata">

### Author: ![bogdan.pintea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bogdan.pintea/32/45740_2.png) [@bogdan.pintea](https://discuss.elastic.co/u/bogdan.pintea)
#### Post date: [November 4, 2021, 10:39am UTC](https://discuss.elastic.co/t/eql-sequence-and-elapsed-time-calculation/288101/2 "2021-11-04T10:39:20Z")

</div>

> [@Iriana\_Arguedas](#):
>
> Or is it better to use an external tool to process the response and perform those calculations?

It is, EQL will give you the documents that match your sequence query, but won't do operations on these docs.

---

<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 2, 2021, 10:39am UTC](https://discuss.elastic.co/t/eql-sequence-and-elapsed-time-calculation/288101/3 "2021-12-02T10:39:35Z")

</div>

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