# Visualize the last 5 documents

**URL:** <https://discuss.elastic.co/t/visualize-the-last-5-documents/102711>\
**Category:** Kibana\
**Created:** [October 4, 2017, 1:28pm UTC](https://discuss.elastic.co/t/visualize-the-last-5-documents/102711 "2017-10-04T13:28:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eebee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eebee/32/26799_2.png) [@eebee](https://discuss.elastic.co/u/eebee)\
**Post date:** [October 4, 2017, 1:28pm UTC](https://discuss.elastic.co/t/visualize-the-last-5-documents/102711/1 "2017-10-04T13:28:33Z")

</div>

I have an alarm-log from ElastAlert. I've got a nice table in Discovery where I list all alarms with the most recent at the top.

[Hits in Discovery](http://apendofiles.governor.rocks/kibana1.png)

Now, I want to do a data table visualization in Kibana to show the last 5 alarms.  
I manage to do the oposite, a list with all the alarms and the last time they occured.

[Visualization](http://apendofiles.governor.rocks/kibana2.png)

Any ideas?

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [October 4, 2017, 3:42pm UTC](https://discuss.elastic.co/t/visualize-the-last-5-documents/102711/2 "2017-10-04T15:42:06Z")

</div>

If you save the search from Discovery, you can add it to a dashboard. When you click on "Add" inside the dashboard, you'll notice two tabs: "Visualization" and "Saved Search". Does this accomplish what you need?

---

<div class="post-metadata">

**Author:** ![eebee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eebee/32/26799_2.png) [@eebee](https://discuss.elastic.co/u/eebee)\
**Post date:** [October 5, 2017, 6:56am UTC](https://discuss.elastic.co/t/visualize-the-last-5-documents/102711/3 "2017-10-05T06:56:35Z")

</div>

It sure did. Perfect! Thanks alot. 🙂

---

<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 2, 2017, 6:57am UTC](https://discuss.elastic.co/t/visualize-the-last-5-documents/102711/4 "2017-11-02T06:57:00Z")

</div>

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