# Showing latest status per file

**URL:** <https://discuss.elastic.co/t/showing-latest-status-per-file/152518>\
**Category:** Kibana\
**Created:** [October 15, 2018, 2:44pm UTC](https://discuss.elastic.co/t/showing-latest-status-per-file/152518 "2018-10-15T14:44:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miryam\_H](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@Miryam\_H](https://discuss.elastic.co/u/Miryam_H)\
**Post date:** [October 15, 2018, 2:44pm UTC](https://discuss.elastic.co/t/showing-latest-status-per-file/152518/1 "2018-10-15T14:44:57Z")

</div>

Hi  
We have a system that loading files.  
Each file is sending some statuses during loading process.  
How to have dashboard showing all files with latest status per each file?

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [October 15, 2018, 5:00pm UTC](https://discuss.elastic.co/t/showing-latest-status-per-file/152518/2 "2018-10-15T17:00:43Z")

</div>

Hey,

Can you share a little more info about how the documents are structured? Roughly speaking we'll want status and filename in different fields. We'll want to do a terms aggregation on filename, with a top hits metric sorted on timestamp on the status field.

---

<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 12, 2018, 5:09pm UTC](https://discuss.elastic.co/t/showing-latest-status-per-file/152518/3 "2018-11-12T17:09:04Z")

</div>

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