# Get the timestamp when the max value is reached

**URL:** https://discuss.elastic.co/t/get-the-timestamp-when-the-max-value-is-reached/125999
**Category:** Kibana
**Created:** [March 28, 2018, 10:23pm UTC](https://discuss.elastic.co/t/get-the-timestamp-when-the-max-value-is-reached/125999 "2018-03-28T22:23:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![exorcista](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@exorcista](https://discuss.elastic.co/u/exorcista)
#### Post date: [March 28, 2018, 10:23pm UTC](https://discuss.elastic.co/t/get-the-timestamp-when-the-max-value-is-reached/125999/1 "2018-03-28T22:23:45Z")

</div>

I do collect data about usage from some logs, I was able to build a timelion visualization with this command:

.es(index=xxx,metric='max:peak\_qty',timefield='ts',q='xxx')

where xxx is a value that I provide.

No issues with that, but I would like to build a table visualization with aggregation max along with the timestamp when it max happened, I am filtering by day, let's say March 1st the max value was X at 15:02:00.000 but I got March 1st 2018, 00:00:00.000  
Is it possible?

---

<div class="post-metadata">

### Author: ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)
#### Post date: [March 29, 2018, 8:33pm UTC](https://discuss.elastic.co/t/get-the-timestamp-when-the-max-value-is-reached/125999/2 "2018-03-29T20:33:18Z")

</div>

Why not just use a data table visualization? Is this what you're looking for?

 ![08](https://us1.discourse-cdn.com/elastic/original/3X/c/2/c250455e66274a20c927d526a8f2bd0d03394227.png)

---

<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: [April 26, 2018, 8:33pm UTC](https://discuss.elastic.co/t/get-the-timestamp-when-the-max-value-is-reached/125999/3 "2018-04-26T20:33:33Z")

</div>

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