# Add stop timestamp base on previous doc (event)

**URL:** <https://discuss.elastic.co/t/add-stop-timestamp-base-on-previous-doc-event/156320>\
**Category:** Elasticsearch\
**Created:** [November 12, 2018, 4:22pm UTC](https://discuss.elastic.co/t/add-stop-timestamp-base-on-previous-doc-event/156320 "2018-11-12T16:22:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [November 12, 2018, 4:26pm UTC](https://discuss.elastic.co/t/add-stop-timestamp-base-on-previous-doc-event/156320/2 "2018-11-12T16:26:13Z")

</div>

> [@moimart1](#):
>
> And when I receive a new event with the same `name` , like

If you have lots of unique names to track see discussion on [Distinct count with filter](https://discuss.elastic.co/t/distinct-count-with-filter/155795)

---

_[View the full topic](https://discuss.elastic.co/t/add-stop-timestamp-base-on-previous-doc-event/156320)._
