# Kibana 4.5 latest value

**URL:** <https://discuss.elastic.co/t/kibana-4-5-latest-value/67529>\
**Category:** Kibana\
**Created:** [November 29, 2016, 5:38pm UTC](https://discuss.elastic.co/t/kibana-4-5-latest-value/67529 "2016-11-29T17:38:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bergamoyat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bergamoyat/32/25968_2.png) [@bergamoyat](https://discuss.elastic.co/u/bergamoyat)\
**Post date:** [November 29, 2016, 5:38pm UTC](https://discuss.elastic.co/t/kibana-4-5-latest-value/67529/1 "2016-11-29T17:38:43Z")

</div>

Is there a way we can display only the latest value in kibana search field ? We need only the latest value to be seen by the users. We then want to use that search to create visualizations.

data :  
**_timestamp": "2016-11-28T20:52:39.492-0500", "name": "ABCD", "appcode": "ABC"_**  
timestamp": "2016-11-28T19:56:23.777-0500", "name": "ABCD", "appcode": "ABC"  
timestamp": "2016-11-28T15:34:11.145-0500", "name": "ABCD", "appcode": "ABC"  
timestamp": "2016-11-28T15:01:54.645-0500", "name": "ABCD", "appcode": "ABC"

query dsl :  
{  
"aggs": {  
"group": {  
"terms": {  
"field": "name"  
},  
"aggs": {  
"group\_docs": {  
"top\_hits": {  
"size": 1,  
"sort": [  
{  
"timestamp": {  
"order": "desc"  
}  
}  
]  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [December 1, 2016, 12:11am UTC](https://discuss.elastic.co/t/kibana-4-5-latest-value/67529/2 "2016-12-01T00:11:35Z")

</div>

Not yet, but there is an active PR being worked on to add a Top Hit metric which would allow you to see the latest value of a given field.

> <https://github.com/elastic/kibana/pull/7302>

---

<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 29, 2016, 12:11am UTC](https://discuss.elastic.co/t/kibana-4-5-latest-value/67529/3 "2016-12-29T00:11:38Z")

</div>

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