# Get most recent hit by some field on Discover

**URL:** <https://discuss.elastic.co/t/get-most-recent-hit-by-some-field-on-discover/318824>\
**Category:** Kibana\
**Created:** [November 14, 2022, 5:09am UTC](https://discuss.elastic.co/t/get-most-recent-hit-by-some-field-on-discover/318824 "2022-11-14T05:09:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![liorh](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@liorh](https://discuss.elastic.co/u/liorh)\
**Post date:** [November 14, 2022, 5:09am UTC](https://discuss.elastic.co/t/get-most-recent-hit-by-some-field-on-discover/318824/1 "2022-11-14T05:09:47Z")

</div>

Hi  
Attached is a screenshot of my Discover. How can I make it to show me only the most recent row per event.transactionId? I marked those rows.

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/b/1/b15aa325ca6ea6e48c8ab3687ed8a192631a2628.png)

Thank you very much

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [November 14, 2022, 6:24am UTC](https://discuss.elastic.co/t/get-most-recent-hit-by-some-field-on-discover/318824/2 "2022-11-14T06:24:47Z")

</div>

Discover will not do that.

You should look at the Latest transform... Exactly what you are looking for.

> **[Transform overview | Elasticsearch Guide \[8.5\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.5/transform-overview.html#latest-transform-overview)**

---

<div class="post-metadata">

**Author:** ![liorh](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@liorh](https://discuss.elastic.co/u/liorh)\
**Post date:** [November 15, 2022, 10:30am UTC](https://discuss.elastic.co/t/get-most-recent-hit-by-some-field-on-discover/318824/3 "2022-11-15T10:30:23Z")

</div>

Thank you very much.

---

<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 13, 2022, 10:30am UTC](https://discuss.elastic.co/t/get-most-recent-hit-by-some-field-on-discover/318824/4 "2022-12-13T10:30:56Z")

</div>

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